mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-11-09 21:14:44 -07:00
uploads and communicates over serial
This commit is contained in:
parent
eb947bff8c
commit
0e6bf815ca
|
@ -105,10 +105,10 @@ void setup() {
|
||||||
digitalWrite( GSM_RST, HIGH );
|
digitalWrite( GSM_RST, HIGH );
|
||||||
digitalWrite( CHG_PIN, HIGH );
|
digitalWrite( CHG_PIN, HIGH );
|
||||||
|
|
||||||
digitalWrite( LED_NO_SERVICE, LOW );
|
fonaSerial->begin(4800);
|
||||||
fonaSerial->begin(115200);
|
|
||||||
if (! fona.begin(*fonaSerial)) {
|
if (! fona.begin(*fonaSerial)) {
|
||||||
while (1); //fona didn't start
|
while (1); //fona didn't start
|
||||||
|
digitalWrite( LED_BAT_LOW, HIGH );
|
||||||
}
|
}
|
||||||
//while ( !fona.setAudio(FONA_EXTAUDIO) ) {}
|
//while ( !fona.setAudio(FONA_EXTAUDIO) ) {}
|
||||||
|
|
||||||
|
@ -118,6 +118,8 @@ void setup() {
|
||||||
digitalWrite( LED_BAT_LOW, LOW );
|
digitalWrite( LED_BAT_LOW, LOW );
|
||||||
fona.sendCheckReply( F("AT+CLVL=20"), F("OK") ); // set dialtone volume
|
fona.sendCheckReply( F("AT+CLVL=20"), F("OK") ); // set dialtone volume
|
||||||
|
|
||||||
|
digitalWrite( LED_BAT_LOW, LOW );
|
||||||
|
digitalWrite( LED_NO_SERVICE, LOW );
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user