Save 70 more bytes!
(realized this due to the memcpy-inserting cross-gcc :-)
This commit is contained in:
parent
2c84b74397
commit
1083f8aa4f
|
@ -18,7 +18,7 @@ void rbInit() {
|
||||||
gpioSetDir(USB_CONNECT, gpioDirection_Output);
|
gpioSetDir(USB_CONNECT, gpioDirection_Output);
|
||||||
gpioSetValue(USB_CONNECT, 1);
|
gpioSetValue(USB_CONNECT, 1);
|
||||||
|
|
||||||
uint8_t ports[] = { RB_BTN0, RB_BTN1, RB_BTN2, RB_BTN3, RB_BTN4,
|
static uint8_t ports[] = { RB_BTN0, RB_BTN1, RB_BTN2, RB_BTN3, RB_BTN4,
|
||||||
RB_LED0, RB_LED1, RB_LED2,
|
RB_LED0, RB_LED1, RB_LED2,
|
||||||
RB_SPI_SS0, RB_SPI_SS1, RB_SPI_SS2,
|
RB_SPI_SS0, RB_SPI_SS1, RB_SPI_SS2,
|
||||||
RB_SPI_SS3, RB_SPI_SS4, RB_SPI_SS5,
|
RB_SPI_SS3, RB_SPI_SS4, RB_SPI_SS5,
|
||||||
|
|
|
@ -166,7 +166,7 @@ void lcdInit(void) {
|
||||||
lcd_select();
|
lcd_select();
|
||||||
|
|
||||||
if(displayType==DISPLAY_N1200){
|
if(displayType==DISPLAY_N1200){
|
||||||
uint8_t initseq[]= { 0xE2,0xAF, // Display ON
|
static uint8_t initseq[]= { 0xE2,0xAF, // Display ON
|
||||||
0xA1, // Mirror-X
|
0xA1, // Mirror-X
|
||||||
0xA4, 0x2F, 0xB0, 0x10};
|
0xA4, 0x2F, 0xB0, 0x10};
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -175,7 +175,7 @@ void lcdInit(void) {
|
||||||
delayms(5); // actually only needed after the first
|
delayms(5); // actually only needed after the first
|
||||||
}
|
}
|
||||||
}else{ /* displayType==DISPLAY_N1600 */
|
}else{ /* displayType==DISPLAY_N1600 */
|
||||||
uint8_t initseq_d[] = {
|
static uint8_t initseq_d[] = {
|
||||||
0x36,
|
0x36,
|
||||||
0x29, 0xBA, 0x07,
|
0x29, 0xBA, 0x07,
|
||||||
0x15, 0x25, 0x3f,
|
0x15, 0x25, 0x3f,
|
||||||
|
|
Loading…
Reference in New Issue