mirror of
https://github.com/jscrane/r65emu.git
synced 2024-06-14 17:29:42 +00:00
add esp8266-pwm-fs.h
This commit is contained in:
parent
d22a61368e
commit
bc3fca1a3c
|
@ -9,7 +9,7 @@
|
||||||
#elif defined(ESP32)
|
#elif defined(ESP32)
|
||||||
#include "hw/esp32-espi-dac.h"
|
#include "hw/esp32-espi-dac.h"
|
||||||
#elif defined(ESP8266)
|
#elif defined(ESP8266)
|
||||||
#include "hw/esp8266-pwm.h"
|
#include "hw/esp8266-pwm-fs.h"
|
||||||
#else
|
#else
|
||||||
#error "unknown architecture"
|
#error "unknown architecture"
|
||||||
#endif
|
#endif
|
||||||
|
|
29
hw/esp8266-pwm-fs.h
Normal file
29
hw/esp8266-pwm-fs.h
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
// TFT display...
|
||||||
|
#define USE_ESPI
|
||||||
|
//must define these in Makefile (or platformio)
|
||||||
|
//#define USER_SETUP_LOADED
|
||||||
|
//#define ILI9341_DRIVER
|
||||||
|
//#define TFT_CS PIN_D8
|
||||||
|
//#define TFT_DC PIN_D1
|
||||||
|
//#define TFT_WIDTH 240
|
||||||
|
//#define TFT_HEIGHT 320
|
||||||
|
//#define TFT_RST -1
|
||||||
|
//#define SPI_FREQUENCY 40000000
|
||||||
|
//#define LOAD_GLCD
|
||||||
|
|
||||||
|
// PS/2 keyboard
|
||||||
|
#define KBD_DATA D3
|
||||||
|
#define KBD_IRQ D4
|
||||||
|
|
||||||
|
// SPI-RAM
|
||||||
|
#undef USE_SPIRAM
|
||||||
|
|
||||||
|
// "tape" storage...
|
||||||
|
#undef USE_SD
|
||||||
|
#undef USE_SPIFFS
|
||||||
|
#define USE_FS
|
||||||
|
|
||||||
|
// sound
|
||||||
|
#define PWM_SOUND D2
|
||||||
|
#define PWM_DUTY 20 // 20/1024 -> volume
|
||||||
|
#define PWM_TOP 1024
|
|
@ -3,8 +3,8 @@
|
||||||
//must define these in Makefile (or platformio)
|
//must define these in Makefile (or platformio)
|
||||||
//#define USER_SETUP_LOADED
|
//#define USER_SETUP_LOADED
|
||||||
//#define ILI9341_DRIVER
|
//#define ILI9341_DRIVER
|
||||||
//#define TFT_CS PIN_D6
|
//#define TFT_CS PIN_D8
|
||||||
//#define TFT_DC PIN_D8
|
//#define TFT_DC PIN_D1
|
||||||
//#define TFT_WIDTH 240
|
//#define TFT_WIDTH 240
|
||||||
//#define TFT_HEIGHT 320
|
//#define TFT_HEIGHT 320
|
||||||
//#define TFT_RST -1
|
//#define TFT_RST -1
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
//must define these in Makefile (or platformio)
|
//must define these in Makefile (or platformio)
|
||||||
//#define USER_SETUP_LOADED
|
//#define USER_SETUP_LOADED
|
||||||
//#define ILI9341_DRIVER
|
//#define ILI9341_DRIVER
|
||||||
//#define TFT_CS PIN_D6
|
//#define TFT_CS PIN_D8
|
||||||
//#define TFT_DC PIN_D8
|
//#define TFT_DC PIN_D1
|
||||||
//#define TFT_WIDTH 240
|
//#define TFT_WIDTH 240
|
||||||
//#define TFT_HEIGHT 320
|
//#define TFT_HEIGHT 320
|
||||||
//#define TFT_RST -1
|
//#define TFT_RST -1
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
// "tape" storage...
|
// "tape" storage...
|
||||||
#undef USE_SD
|
#undef USE_SD
|
||||||
#undef USE_SPIFFS
|
#undef USE_SPIFFS
|
||||||
#define USE_FS
|
#undef USE_FS
|
||||||
|
|
||||||
// sound
|
// sound
|
||||||
#define PWM_SOUND D2
|
#define PWM_SOUND D2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user