mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-15 01:32:56 +08:00
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:
committed by
Sheetal Nandi
parent
d738494b08
commit
f8485f6311
@@ -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 });
|
||||
|
||||
2
types/espruino/index.d.ts
vendored
2
types/espruino/index.d.ts
vendored
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user