Skip to content

Commit

Permalink
Add attiny10 support back in
Browse files Browse the repository at this point in the history
  • Loading branch information
cpldcpu committed May 6, 2024
1 parent d9a801c commit 8d47623
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ Release History
- Updated Arduino library archive
- Fixed an issue where the config include was not used
- Support for LGT8F
- v2.6rc 2024/05/01
- Re-added support for reduced core AVR that was broken in v2.5
- v2.6 2024/05/01
- Re-added support for reduced core AVR that was broken in v2.5. Thanks to @U-1F992 for testing
- Fixed location of ws2812_config.h


Expand Down
7 changes: 4 additions & 3 deletions light_ws2812_AVR/Light_WS2812/light_ws2812.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
* Controls WS2811/WS2812/WS2812B RGB-LEDs
* Author: Tim ([email protected])
*
* Jan 18th, 2014 v2.0b Initial Version
* Nov 29th, 2015 v2.3 Added SK6812RGBW support
* Nov 11th, 2023 v2.5 Added support for ports that cannot be addressed with "out"
* Jan 18, 2014 v2.0b Initial Version
* Nov 29, 2015 v2.3 Added SK6812RGBW support
* Nov 11, 2023 v2.5 Added support for ports that cannot be addressed with "out"
* Added LGT8F88A support
* May 1, 2024 v2.6 Added support for reduced core AVRs
*
* License: GNU GPL v2+ (see License.txt)
*/
Expand Down
34 changes: 34 additions & 0 deletions light_ws2812_AVR/Light_WS2812/ws2812_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* light_ws2812_config.h
*
* v2.4 - Nov 27, 2016
*
* User Configuration file for the light_ws2812_lib
*
*/


#ifndef WS2812_CONFIG_H_
#define WS2812_CONFIG_H_

///////////////////////////////////////////////////////////////////////
// Define Reset time in µs.
//
// This is the time the library spends waiting after writing the data.
//
// WS2813 needs 300 µs reset time
// WS2812 and clones only need 50 µs
//
///////////////////////////////////////////////////////////////////////

#define ws2812_resettime 300

///////////////////////////////////////////////////////////////////////
// Define I/O pin
///////////////////////////////////////////////////////////////////////


#define ws2812_port B // Data port
#define ws2812_pin 0 // Data out pin

#endif /* WS2812_CONFIG_H_ */
8 changes: 7 additions & 1 deletion light_ws2812_AVR/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
F_CPU = 16000000
# DEVICE = attiny85
DEVICE = atmega168p
EXAMPLES = RGB_blinky RGBW_blinky Chained_writes Rainbow

# Uncomment this to build for attiny10. The rainbow example uses too much memory for Attiny10
# F_CPU = 8000000
# DEVICE = attiny10
# EXAMPLES = RGB_blinky RGBW_blinky Chained_writes

#
# Tools:
CC = avr-gcc

LIB = light_ws2812
EXAMPLES = RGB_blinky RGBW_blinky Chained_writes Rainbow
DEP = ws2812_config.h Light_WS2812/light_ws2812.h

CFLAGS = -g2 -I. -ILight_WS2812 -mmcu=$(DEVICE) -DF_CPU=$(F_CPU)
Expand Down

0 comments on commit 8d47623

Please sign in to comment.