kevosmitherino
New member
Hello everyone, I just purchased the Crystalfontz 128x56. I am adding this to a project that I am working on in PlatformIO and receive build errors. If built in the Arduino app, everything compiles fine however, I would like to use PlatformIO (C++).
Does anyone have a rewrite with the cpp file versus the ino file? If not, can anyone assist me with the errors:
PORTB was not declared in this scope
DDRC was not declared in this scope
for the PORTB and PORTC I rewrote like the following which may have resolved that particular:
//#define CLR_CS (PORTB &= ~(0x01)) //pin #8 - Chip Enable Signal
//#define SET_CS (PORTB |= (0x01)) //pin #8 - Chip Enable Signal
#define CLR_CS REG_WRITE(GPIO_OUT_W1TC_REG, ~0x01)
#define SET_CS REG_WRITE(GPIO_OUT_W1TC_REG, 0x01)
Thanks in advance
Does anyone have a rewrite with the cpp file versus the ino file? If not, can anyone assist me with the errors:
PORTB was not declared in this scope
DDRC was not declared in this scope
for the PORTB and PORTC I rewrote like the following which may have resolved that particular:
//#define CLR_CS (PORTB &= ~(0x01)) //pin #8 - Chip Enable Signal
//#define SET_CS (PORTB |= (0x01)) //pin #8 - Chip Enable Signal
#define CLR_CS REG_WRITE(GPIO_OUT_W1TC_REG, ~0x01)
#define SET_CS REG_WRITE(GPIO_OUT_W1TC_REG, 0x01)
Thanks in advance
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.