This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Warnings to ensure ATtinyX4's Arduino pinmapping is defined correctly | |
#ifdef __AVR_ATtinyX4__ // ensure ATtinyX4 platform, proceed with warning checks | |
// SETUP: Uncomment ONE of the two definitions below to select the desired pinmapping: | |
#define USE_CW_PINMAPPING // this project uses CLOCKWISE (CW) pinmapping | |
// #define USE_CCW_PINMAPPING // this project uses COUNTERCLOCKWISE (CCW) pinmapping | |
#ifdef USE_CW_PINMAPPING | |
#ifdef USE_CCW_PINMAPPING | |
#error "Both CW and CCW pinmappings are specified - only one may be selected!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* PINOUT DIAGRAMS FOR ATTINYX4 / ATTINYX5 | |
ATtinyX4 | |
.--------. | |
VCC [2.7-5.5V] - 1 =| O |= 14 - GND | |
10(0),X1,PCI8,PB0 - 2 =| |= 13 - 0(10),A0,PCI0,PA0 | |
9(1),X2,PCI9,PB1 - 3 =| |= 12 - 1(9),A1,TXD,PCI1,PA1 | |
RESET,11(11),PCI11,PB3 - 4 =| |= 11 - 2(8),A2,RXD,PCI2,PA2 | |
8(2),INT0,PCI10,PB2 - 5 <| |= 10 - 3(7),A3,PCI3,PA3 | |
7(3),A7,PCI7,PA7 - 6 <| |= 9 - 4(6),A4,SCK/SCL,PCI4,PA4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; PLATFORM.IO .ini TEMPLATE FOR ATTINYx4 ICs | |
; by Nick Yonge | |
; https://gist.github.com/nickyonge/69bf8889f9c26f0a6661cdb72e56620c | |
; | |
; Default values are all preselected, with commented-out sections for common modifications (eg clock customization) | |
; Look for the headlines, and just uncomment the sections as needed! | |
; | |
; Useful Resources: | |
; ATtiny 24/44/84 Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/doc8006.pdf | |
; confFUSE AVR Fuse Calculator: https://www.engbedded.com/conffuse/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WEBPACK TEMPLATE SETUP | |
* webpack.config.js | |
* | |
* All the steps for getting a new webpack-based website started via VS Code! | |
* | |
* This script itself is a file called webpack.config.js and is used to tell Webpack how to build your site. | |
* Start with the prerequisites below! | |
* | |
* --- PREREQUISITES --- | |
- Install VS Code, https://code.visualstudio.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, world! |