This commit is contained in:
Thomas von Dein
2020-02-17 19:43:07 +01:00
parent 49500a85b8
commit 9ef5896d67
31 changed files with 1621 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/* -*-c++-*-
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
Serial.begin(9600);
Serial.print("Press any key: ");
pinMode(PB0, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
if (Serial.available()) {
Serial.println("blinked\n");
}
}

View File

@@ -0,0 +1,47 @@
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
# attiny841:
# BOARD_TAG = attinyx41
# BOARD_SUB = 841
# attiny861:
# BOARD_TAG = attinyx61
# BOARD_SUB = 861
# attiny85:
# BOARD_TAG = attinyx5
# BOARD_SUB = 85
# attiny84:
# BOARD_TAG = attinyx4
# BOARD_SUB = 84
# Arduino stuff
PROJECT_DIR = $(shell pwd)
BOARD_TAG = attinyx41
BOARD_SUB = 841
ARDUINO_DIR = /usr/local/arduino
ARDMK_DIR = /usr/local/arduino/Arduino-Makefile
MONITOR_PORT = /dev/ttyACM0
ISP_PORT = /dev/ttyACM0
AVRDUDE = /usr/local/bin/avrdude
#ARDUINO_LIB_PATH = $(ARDUINO_DIR)/hardware/ATTinyCore/avr/libraries
ARDUINO_LIBS = #Wire SPI GFX SSD1306 # SPI
ARDUINO_SKETCHBOOK = .
# mk stuff
ALTERNATE_CORE = ATTinyCore
F_CPU = 8000000L
MONITOR_BAUDRATE = 115200
AVRDUDE_ARD_PROGRAMMER = stk500v2
AVRDUDE_ARD_BAUDRATE = 9600
AVR_TOOLS_DIR = /usr/local/avr
AVRDUDE_CONF = /usr/local/etc/avrdude.conf
# compiler stuff
CFLAGS_STD = -std=gnu11
CXXFLAGS_STD = -std=gnu++11
CXXFLAGS += -pedantic -Wall -Wextra
CURRENT_DIR = $(shell pwd)
# keep this!
include $(ARDMK_DIR)/Arduino.mk

1
841-tinycore-test/hardware Symbolic link
View File

@@ -0,0 +1 @@
/usr/local/arduino/hardware

View File

@@ -0,0 +1 @@
/usr/local/esp32/arduino-core/libraries/GFX

View File

@@ -0,0 +1 @@
/usr/local/arduino/hardware/ATTinyCore/avr/libraries/SPI

View File

@@ -0,0 +1 @@
/usr/local/esp32/arduino-core/libraries/SSD1306

View File

@@ -0,0 +1 @@
/usr/local/esp32/arduino-core/libraries/TinyWireM

View File

@@ -0,0 +1 @@
/usr/local/arduino/hardware/ATTinyCore/avr/libraries/Wire