mirror of
https://github.com/jscrane/Apple1.git
synced 2025-01-15 08:29:42 +00:00
minor updates
This commit is contained in:
parent
1905c9d21c
commit
9688ad0c34
8
Makefile
8
Makefile
@ -3,13 +3,13 @@ t ?= esp32
|
|||||||
ifeq ($t, esp8266)
|
ifeq ($t, esp8266)
|
||||||
BOARD := d1_mini
|
BOARD := d1_mini
|
||||||
UPLOAD_SPEED := 921600
|
UPLOAD_SPEED := 921600
|
||||||
|
TERMINAL_SPEED := 115200
|
||||||
SPIFFS_DIR := programs
|
SPIFFS_DIR := programs
|
||||||
FLASH_SIZE := 4M1M
|
FLASH_SIZE := 4M1M
|
||||||
F_CPU := 80
|
F_CPU := 80
|
||||||
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER \
|
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \
|
||||||
-DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
|
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
|
||||||
-DTFT_CS=PIN_D6 -DTFT_DC=PIN_D8 \
|
-DHARDWARE_H=\"hw/esp8266-pwm-fs.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED)
|
||||||
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD
|
|
||||||
LIBRARIES := TFT_eSPI
|
LIBRARIES := TFT_eSPI
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -43,7 +43,9 @@ void reset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(115200);
|
#if defined(DEBUGGING) || defined(CPU_DEBUG)
|
||||||
|
Serial.begin(TERMINAL_SPEED);
|
||||||
|
#endif
|
||||||
hardware_init(cpu);
|
hardware_init(cpu);
|
||||||
|
|
||||||
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user