mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-11 07:25:07 +01:00
Fix NES LED/LCD conflict with HW4
This commit is contained in:
parent
d83482dd4c
commit
6fe2eeffb3
@ -4,8 +4,8 @@
|
||||
This project represents a community-driven effort to provide
|
||||
an easy to build and easy to modify cartridge dumper.
|
||||
|
||||
Date: 23.02.2022
|
||||
Version: 7.7
|
||||
Date: 27.02.2022
|
||||
Version: 7.8
|
||||
|
||||
SD lib: https://github.com/greiman/SdFat
|
||||
OLED lib: https://github.com/adafruit/Adafruit_SSD1306
|
||||
@ -45,7 +45,7 @@
|
||||
|
||||
**********************************************************************************/
|
||||
|
||||
char ver[5] = "7.7";
|
||||
char ver[5] = "7.8";
|
||||
|
||||
/******************************************
|
||||
Libraries
|
||||
|
@ -115,12 +115,12 @@ static const byte PROGMEM mapsize [] = {
|
||||
#define CHR_WRITE_LOW PORTF &= ~(1<<2)
|
||||
|
||||
// RGB LED COMMON ANODE
|
||||
#define LED_RED_OFF PORTB |= (1<<6)
|
||||
#define LED_RED_ON PORTB &= ~(1<<6)
|
||||
#define LED_GREEN_OFF PORTB |= (1<<5)
|
||||
#define LED_GREEN_ON PORTB &= ~(1<<5)
|
||||
#define LED_BLUE_OFF PORTB |= (1<<4)
|
||||
#define LED_BLUE_ON PORTB &= ~(1<<4)
|
||||
#define LED_RED_OFF setColor_RGB(0, 0, 0)
|
||||
#define LED_RED_ON setColor_RGB(255, 0, 0)
|
||||
#define LED_GREEN_OFF setColor_RGB(0, 0, 0)
|
||||
#define LED_GREEN_ON setColor_RGB(0, 255, 0)
|
||||
#define LED_BLUE_OFF setColor_RGB(0, 0, 0)
|
||||
#define LED_BLUE_ON setColor_RGB(0, 0, 255)
|
||||
|
||||
#define MODE_READ { PORTK = 0xFF; DDRK = 0; }
|
||||
#define MODE_WRITE DDRK = 0xFF
|
||||
|
Loading…
Reference in New Issue
Block a user