add esp8266-pwm-fs.h

This commit is contained in:
Stephen Crane 2018-11-30 14:31:51 +00:00
parent d22a61368e
commit bc3fca1a3c
4 changed files with 35 additions and 6 deletions

View File

@ -9,7 +9,7 @@
#elif defined(ESP32)
#include "hw/esp32-espi-dac.h"
#elif defined(ESP8266)
#include "hw/esp8266-pwm.h"
#include "hw/esp8266-pwm-fs.h"
#else
#error "unknown architecture"
#endif

29
hw/esp8266-pwm-fs.h Normal file
View 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

View File

@ -3,8 +3,8 @@
//must define these in Makefile (or platformio)
//#define USER_SETUP_LOADED
//#define ILI9341_DRIVER
//#define TFT_CS PIN_D6
//#define TFT_DC PIN_D8
//#define TFT_CS PIN_D8
//#define TFT_DC PIN_D1
//#define TFT_WIDTH 240
//#define TFT_HEIGHT 320
//#define TFT_RST -1

View File

@ -3,8 +3,8 @@
//must define these in Makefile (or platformio)
//#define USER_SETUP_LOADED
//#define ILI9341_DRIVER
//#define TFT_CS PIN_D6
//#define TFT_DC PIN_D8
//#define TFT_CS PIN_D8
//#define TFT_DC PIN_D1
//#define TFT_WIDTH 240
//#define TFT_HEIGHT 320
//#define TFT_RST -1
@ -21,7 +21,7 @@
// "tape" storage...
#undef USE_SD
#undef USE_SPIFFS
#define USE_FS
#undef USE_FS
// sound
#define PWM_SOUND D2