Javascript wrappers for LPS22HB Sensor library
Dependencies: LPS22HB
Diff: LPS22HB_JS.h
- Revision:
- 5:e92dbbec30d7
- Parent:
- 4:c2cf5deba40f
- Child:
- 6:a480866ede7e
--- a/LPS22HB_JS.h Wed Oct 25 13:58:34 2017 +0200 +++ b/LPS22HB_JS.h Tue Oct 31 16:20:09 2017 +0100 @@ -61,8 +61,17 @@ public: /* Constructors */ LPS22HB_JS(){ printf("calling empty constructor"); } + LPS22HB_JS(DevI2C &devI2c); + void init(DevI2C &devI2c); + LPS22HB_JS(DevI2C &devI2c, uint8_t address, PinName int_pin); + void init(DevI2C &devI2c, uint8_t address, PinName int_pin); + LPS22HB_JS(SPI &spi, PinName cs_pin); + void init(SPI &spi, PinName cs_pin); + LPS22HB_JS(SPI &spi, PinName cs_pin, PinName int_pin, int spi_type); + void init(SPI &spi, PinName cs_pin, PinName int_pin, int spi_type); + /* Destructor */ ~LPS22HB_JS(); @@ -72,11 +81,6 @@ char *get_temperature_string(char *); float get_pressure(); char *get_pressure_string(char *); - void led_on(DigitalOut &led) { - //printf("led status: %d\n", led); - led = 1; - //led = !led; - } }; #endif \ No newline at end of file