1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-22 03:30:02 +00:00

fixes for lm4f

This commit is contained in:
Stephen Crane 2018-11-11 11:59:43 +00:00
parent 9a643171a6
commit d6dfbe06ef
3 changed files with 17 additions and 2 deletions

View File

@ -1,6 +1,7 @@
// TFT display... // TFT display...
// NOTE: edit memorysaver.h to select the correct chip for your display! // NOTE: edit memorysaver.h to select the correct chip for your display!
// Daniel Rebollo's boosterpack // Daniel Rebollo's boosterpack
#define USE_UTFT
#define TFT_BACKLIGHT PD_6 #define TFT_BACKLIGHT PD_6
#define TFT_MODEL SSD1289 #define TFT_MODEL SSD1289
#define TFT_RS PC_6 #define TFT_RS PC_6

View File

@ -25,7 +25,7 @@ bool sdtape::start(const char *programs)
#if defined(ESP8266) #if defined(ESP8266)
SPIFFS.begin(); SPIFFS.begin();
dir = SPIFFS.openDir("/"); dir = SPIFFS.openDir("/");
#else if defined(DISK) #elif defined(DISK)
dir = DISK.open(programs); dir = DISK.open(programs);
if (!dir) if (!dir)
return false; return false;

View File

@ -40,7 +40,7 @@ void PWM::set_freq(unsigned freq) {
ESP_ERROR_CHECK(::ledc_set_freq(SPEED_MODE, TIMER, freq)); ESP_ERROR_CHECK(::ledc_set_freq(SPEED_MODE, TIMER, freq));
} }
#else #elif defined(PWM_SOUND)
static unsigned pin; static unsigned pin;
void PWM::begin(unsigned gpio) { void PWM::begin(unsigned gpio) {
@ -59,4 +59,18 @@ void PWM::stop() {
void PWM::set_freq(unsigned freq) { void PWM::set_freq(unsigned freq) {
analogWriteFreq(freq); analogWriteFreq(freq);
} }
#else
void PWM::begin(unsigned gpio) {
}
void PWM::set_duty(unsigned duty) {
}
void PWM::stop() {
}
void PWM::set_freq(unsigned freq) {
}
#endif #endif