Browse Source

Added schematic and also README.

master
Englebert 3 years ago
parent
commit
1bc128ea17
  1. BIN
      CORE2_V1.0_SCH.pdf
  2. 32
      README.md
  3. 17
      sounds/AudaCity.aup
  4. BIN
      sounds/AudaCity_data/eff/d1f/eff1f356.au
  5. BIN
      sounds/rccontroller.raw
  6. BIN
      sounds/systemrebooting.mp3
  7. BIN
      sounds/systemrebooting.raw
  8. 6
      src/Screen.cpp
  9. 4
      src/Speak.cpp
  10. 3
      src/Speak.h
  11. 2
      src/main.cpp

BIN
CORE2_V1.0_SCH.pdf

32
README.md

@ -0,0 +1,32 @@
### LAYOUT DIAGRAM ###
+---------------+ +-------+-------+
| GND | | ADC | G35 |
+---------------+ +-------+-------+
| GND | | ADC | G36 |
+---------------+ +-------+-------+
| GND | | RST | EN |
+-------+-------+ +-------+-------+
| G23 | MOSI | | DAC | G25 |
+-------+-------+ +-------+-------+
| G38 | MISO | | DAC | G26 |
+-------+-------+ +-------+-------+
| G18 | SCK | | 3.3V |
+-------+-------+ +-------+-------+
| G3 | RXD0 | | TXD0 | G1 |
+-------+-------+ +-------+-------+
| G13 | RXD2 | | TXD2 | G14 |
+-------+-------+ +-------+-------+
| G21 | iSDA | | iSCL | G22 |
+-------+-------+ +-------+-------+
| G32 | pSDA | | pSCL | G33 |
+-------+-------+ +-------+-------+
| G27 | GPIO | | GPIO | G19 |
+-------+-------+ +-------+-------+
| G2 | I2SOUT| | I2SCK | G0 |
+-------+-------+ +-------+-------+
| NC | | PDMDT | G34 |
+---------------+ +-------+-------+
| NC | | 5V |
+---------------+ +-------+-------+
| NC | | BAT |
+---------------+ +-------+-------+

17
sounds/AudaCity.aup

@ -0,0 +1,17 @@
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE project PUBLIC "-//audacityproject-1.3.0//DTD//EN" "http://audacity.sourceforge.net/xml/audacityproject-1.3.0.dtd" >
<project xmlns="http://audacity.sourceforge.net/xml/" projname="AudaCity_data" version="1.3.0" audacityversion="2.4.2" sel0="0.0000000000" sel1="0.0000000000" vpos="0" h="0.0000000000" zoom="934.0723511654" rate="22050.0" snapto="off" selectionformat="hh:mm:ss + milliseconds" frequencyformat="Hz" bandwidthformat="octaves">
<tags>
<tag name="Software" value="Lavf58.76.100"/>
</tags>
<wavetrack name="savesettings" isSelected="1" height="150" minimized="0" channel="2" linked="0" mute="0" solo="0" rate="22050" gain="1.0" pan="0.0" colorindex="0">
<waveclip offset="0.00000000" colorindex="0">
<sequence maxsamples="262144" sampleformat="262159" numsamples="20207">
<waveblock start="0">
<simpleblockfile filename="eff1f356.au" len="20207" min="-0.344003" max="0.329232" rms="0.068922"/>
</waveblock>
</sequence>
<envelope numpoints="0"/>
</waveclip>
</wavetrack>
</project>

BIN
sounds/AudaCity_data/eff/d1f/eff1f356.au

BIN
sounds/rccontroller.raw

BIN
sounds/systemrebooting.mp3

BIN
sounds/systemrebooting.raw

6
src/Screen.cpp

@ -213,6 +213,12 @@ void Screen::menu_reboot(void) {
if(M5.BtnB.wasPressed()) {
if(current_menu_reboot_selection == SELECTION_YES) {
// Trigger voice
speak.speak_miscs = PHRASE001;
speak.speak_now_other = true;
vTaskDelay(1500);
ESP.restart();
} else if(current_menu_reboot_selection == SELECTION_NO) {
// Return back to main menu

4
src/Speak.cpp

@ -44,7 +44,7 @@ void Speak::begin(void) {
void Speak::speak_menu(uint8_t menu_selected) {
if(menu_selected == MENU_RC_CONTROLLER) {
speak("rccalibration.raw");
speak("rccontroller.raw");
} else if(menu_selected == MENU_BLUETOOTH) {
speak("bluetooth.raw");
} else if(menu_selected == MENU_STICK_CALIBRATION) {
@ -76,6 +76,8 @@ void Speak::speak_menu(uint8_t menu_selected) {
void Speak::speak_misc(uint8_t phrase) {
if(phrase == PHRASE000) {
speak("systemshuttingdown.raw");
} else if(phrase == PHRASE001) {
speak("systemrebooting.raw");
}
}

3
src/Speak.h

@ -20,7 +20,8 @@
enum phrase {
PHRASE000
PHRASE000, // System Shutting Down
PHRASE001 // System Rebooting
};

2
src/main.cpp

@ -24,6 +24,7 @@ void setup() {
storage.begin();
customwifi.begin();
web.begin();
speak.welcome();
// Task Creation
xTaskCreatePinnedToCore(
@ -56,7 +57,6 @@ void setup() {
CPU_0
);
speak.welcome();
}

Loading…
Cancel
Save