[...
It’s an 8-bit processor with only 8k of RAM.
And you can do more than just blink an LED. You can control a whole WS2812 strip
of RGB LEDs, and do other neat things. So it’s incredible what you can do with
8k of RAM.
[...]
Source: https://changelog.com/gotime/199
# UDEV Rules for Micronucleus boards including the Digispark.
# This file must be placed at:
#
# /etc/udev/rules.d/49-micronucleus.rules (preferred location)
# or
# /lib/udev/rules.d/49-micronucleus.rules (req'd on some broken systems)
#
# After this file is copied, physically unplug and reconnect the board.
#
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
#
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.
sudo udevadm control --reload-rules
Edit ~/.arduino15/packages/digistump/hardware/avr/1.6.7/platform.txt
.
In AVR Uploader/Programmers tools
change:
tools.micronucleus.upload.pattern="{cmd.path}" --run --timeout 60 "{build.path}/{build.project_name}.hex"
#tools.micronucleus.upload.pattern="{cmd.path}" -cdigispark --timeout 60 -Uflash:w:{build.path}/{build.project_name}.hex:i
Replace arduino15/packages/digistump/tools/micronucleus/2.0a4/micronucleus
with
new version from https://github.com/micronucleus/micronucleus.
Test with sketch:
void setup() {
pinMode(1, OUTPUT);
}
void loop() {
digitalWrite(1,HIGH);
delay(300);
digitalWrite(1,LOW);
delay(300);
}
- https://tinygo.org/docs/tutorials/blinky/
- https://tinygo.org/docs/reference/microcontrollers/digispark/
package main
import (
"machine"
"time"
)
func main() {
led := machine.LED
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
for {
led.Low()
time.Sleep(time.Millisecond * 100)
led.High()
time.Sleep(time.Millisecond * 100)
}
}
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/software/arduino-1.8.16/hardware/tools/avr/bin
go mod init blinky
tinygo flash -target=digispark
- https://digistump.com/wiki/digispark/tricks (e.g. Debug with blinkenlights)
- https://wolles-elektronikkiste.de/en/digispark-the-convenient-attiny85-alternative
- https://web.archive.org/web/20190308212221/http://etextilelounge.com:80/arduino-breadboard-blink-5-leds-in-sequence/
- https://draeger-it.blog/digispark-attiny85-mit-oled-display-und-analogen-temperatursensor-lm35dz/
- https://www.hackster.io/glowascii/programming-attiny85-chips-dip-and-soic-with-arduino-code-130ed3
- https://www.heise.de/developer/artikel/ATtiny-Winzlinge-ganz-gross-3329007.html
- https://www.heise.de/ct/artikel/Erste-Schritte-mit-den-Mikrocontrollern-ATtiny84-und-85-4399393.html
- https://www.heise.de/select/ct/2019/11/1558697595025607
- https://www.heise.de/ratgeber/Einstieg-in-die-Mikrocontroller-Programmierung-Makrotastatur-im-Eingebau-5019189.html?seite=all
- https://arduino.stackexchange.com/questions/80290/attiny85-dht11-tm1637?atw=1
- https://www.sparkfun.com/products/10899
- https://deviceplus.jp/hobby/using-raspberry-pi-to-program-attiny85/
- https://octopart.com/ (Suche nach Preise)
- https://github.com/micronucleus/micronucleus
- https://www.velleman.eu/downloads/29/vma108_a4v01.pdf
- https://hackaday.com/2021/08/26/digging-into-an-attiny-simulator-bug-with-gdb/
- https://blog.wokwi.com/running-gdb-in-the-browser/
- https://wokwi.com/