espruino: added boolean to digitalwrite (#27577)

* espruino added type for wifi module for access point

* espruino added myself to definitions

* changed tabsize to 4

* espruino: added boolean to digitalwrite
This commit is contained in:
Jurand Niemczycki
2018-07-30 21:00:47 +02:00
committed by Sheetal Nandi
parent d738494b08
commit f8485f6311
2 changed files with 4 additions and 1 deletions

View File

@@ -10,5 +10,8 @@ wifi.startAP('ssid', { password: 'pass', authMode: 'wpa_wpa2' }, err => {
console.log("created");
});
digitalWrite(D2, false);
digitalWrite(D2, true);
I2C1.setup({ scl: D4, sda: D0 });
Serial2.setup(9600, { rx: D16, tx: D17 });

View File

@@ -3600,7 +3600,7 @@ declare function digitalPulse(pin: Pin, value: boolean, time: any): void;
* @param value
* @url http://www.espruino.com/Reference#l__global_digitalWrite
*/
declare function digitalWrite(pin: Pin, value: number): void;
declare function digitalWrite(pin: Pin, value: number | boolean): void;
/**
* <p>Get the digital value of the given pin.</p>