DEBIAN# apt-get install python3-serial or GENTOO# emerge dev-python/pyserial or PYTHON# pip install pyserial
cd ~/ mkdir src git clone https://github.com/plerup/makeEspArduino.git
cd ~/src git clone https://github.com/espressif/arduino-esp32.git esp32 cd esp32 git checkout tags/2.0.8 git submodule update --init cd tools python3 get.py
austin@mightymouse ~/src/esp32 $ cat /home/austin/src/esp32/cores/esp32/core_version.h #define ARDUINO_ESP32_GIT_VER 0xd3254f75 #define ARDUINO_ESP32_GIT_DESC 2.0.8 #define ARDUINO_ESP32_RELEASE_2_0_8 #define ARDUINO_ESP32_RELEASE "2_0_8"
cd ~/src git clone https://github.com/fdivitto/FabGL.git
austin@mightymouse ~/src/FabGL/examples/VGA/SpaceInvaders $ cat Makefile LIBS = /home/austin/src/FabGL/src SKETCH = /home/austin/src/FabGL/examples/VGA/SpaceInvaders/SpaceInvaders.ino UPLOAD_PORT = /dev/ttyACM0 CHIP = esp32 ESP_ROOT=/home/austin/src/esp32 include /home/austin/src/makeEspArduino/makeEspArduino.mk
make flash
austin@mightymouse ~/src/FabGL/examples/VGA/PCEmulator $ cat Makefile LIBS = /home/austin/src/FabGL/src SKETCH = /home/austin/src/FabGL/examples/VGA/PCEmulator/PCEmulator.ino UPLOAD_PORT = /dev/ttyACM0 CHIP = esp32 ESP_ROOT=/home/austin/src/esp32 include /home/austin/src/makeEspArduino/makeEspArduino.mk
diff --git a/examples/VGA/PCEmulator/PCEmulator.ino b/examples/VGA/PCEmulator/PCEmulator.ino index 2154fc24..27bef0e5 100644 --- a/examples/VGA/PCEmulator/PCEmulator.ino +++ b/examples/VGA/PCEmulator/PCEmulator.ino @@ -388,7 +388,8 @@ void setup() esp_spiram_init_cache(); #endif - if (!FileBrowser::mountSDCard(false, SD_MOUNT_PATH, 8)) // @TODO: reduce to 4? + //if (!FileBrowser::mountSDCard(false, SD_MOUNT_PATH, 8)) // @TODO: reduce to 4? + if (!FileBrowser::mountSDCard(false, "/SD", 8, 16*1024, 2, 12, 14, 13)) ibox.message("Error!", "This app requires a SD-CARD!", nullptr, nullptr); // uncomment to format SD!
mkdir imgmount mount -o loop floppy_FREEDOS.img imgmount/
mount -o loop,offset=32256 hd20_DOSPROG.img imgmount/