macbook pro 13inch(2020 late)
MacOS Catalina 10.15.7
Arduino IDE Ver 2.0.0-beta-4にて
Driverは入れた気はするが、それでも書き込みができずにもんもんとしてたが・・
いまのところ、以下方法でなんとかなった
Preference-Additional boards manager URLs
https://raw.githubusercontent.com/digistump/arduino-boards-index/master/package_digistump_index.json
BOARD MANAGERで、
digistump avr boardsで検索
Disistump AVR Boards by Digistamp
をInstall
Tools-Board
Digistump AVR Boards-Digispark(Default - 16.5mhz)
Programmer-Micronucleus
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(0, OUTPUT); //LED on Model B
pinMode(1, OUTPUT); //LED on Model A
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(1, HIGH);
delay(200); // wait for a second
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
digitalWrite(1, LOW);
delay(200); // wait for a second
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(1, HIGH);
delay(500); // wait for a second
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
digitalWrite(1, LOW);
delay(1000);
}
DigSparkをUSBから外して、書き込みボタンを押すと同士にUSBに差す
以下のようなコンパイル・書き込みログが表示されれて、DigSpark基板上のLEDが点滅すればOK
Sketch uses 774 bytes (12%) of program storage space. Maximum is 6012 bytes.
Global variables use 9 bytes of dynamic memory.
--------------------------
Compilation complete.
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 16% complete
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
> Device has firmware version 1.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94 page size: 64
> Erase function sleep duration: 752ms
parsing: 50% complete
> Erasing the memory ...
erasing: 55% complete
erasing: 60% complete
erasing: 65% complete
> Starting to upload ...
writing: 70% complete
writing: 75% complete
writing: 80% complete
> Starting the user app ...
running: 100% complete
>> Micronucleus done. Thank you!
--------------------------
upload complete.
-- 番外
Compilation error: Error: 2 UNKNOWN: fork/exec /bin/avr-g++: no such file or directory
が出たときは
BOARD MANAGERで、
digistump avr boardsで検索
Disistump AVR Boards by Digistamp
をUninstallし、ArduinoIDEを再起動したら、再度Install
で一応解決・・
-- 番外2
windowsの場合はDriverをインストールしないと認識せず、一向に書き込めない
https://github.com/digistump/digistumparduino/releases
のDriverをインストールすることで書き込めた