2024-01-01から1年間の記事一覧
競技プログラミングが難しいのでC言語を復習する R6.5.18------------------------------------------------------------------------------ ・動的メモリ割り当て: a[N] int* a = (int*)malloc(N * sizeof(int)); if (a == NULL) { fprintf(stderr, "Memory…
次のコードが間違っていた def selectDigit(digit): # Open one of the 7-segment display and close the remaining three, the parameter digit is optional for 1,2,4,8 GPIO.output(digitPin[0],GPIO.LOW if ((digit&0x08) == 0x08) else GPIO.HIGH) GPIO…
freenove ledpixel がthonnyから権限の問題(/dev/mem/にアクセスできない)で実行できなかった。 コマンドプロンプトから「sdo python3 ledpixel.py」 と実行して確認した。