upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Namespaces | Data Structures | Typedefs | Enumerations | Variables

C++ API wrapper for the bh1749 driver. More...

Namespaces

 t6713_co2
 

Data Structures

class  A110X
 API for the A110X Hall Effect sensors. More...
 
class  ABP
 API for the ABP Honeywell Pressure Sensor. More...
 
union  accelData
 
class  AD8232
 UPM module for the AD8232 Heart Rate Monitor. More...
 
class  AdafruitMS1438
 API for the AdafruitMS1438 Motor Shield. More...
 
class  adafruitss
 API for the Adafruit Servo Shield. More...
 
class  ADC121C021
 API for the ADC121C021 I2C Analog-to-Digital Converter. More...
 
class  ADIS16448
 API for the Analog Devices ADIS16448 Accelerometer. More...
 
class  ADS1015
 API for ADS1015. More...
 
class  ADS1115
 API for ADS1115. More...
 
class  ADS1X15
 
class  ADXL335
 API for the ADXL335 3-Axis Analog Accelerometer. More...
 
class  Adxl345
 API for the ADXL345 3-Axis Digital Accelerometer. More...
 
class  ADXRS610
 DFRobot ADXRS610 Gyro Breakout board. More...
 
class  AeotecDSB09104
 UPM API for Aeotec Home Energy Meter Gen 1. More...
 
class  AeotecDW2E
 UPM API for Aeotec Door/Window Sensor 2nd Edition. More...
 
class  AeotecSDG2
 UPM API for Aeotec Smart Dimmer Gen 2. More...
 
class  AeotecSS6
 UPM API for Aeotec Smart Switch 6. More...
 
class  AK8975
 API for the AK8975 magnetometer. More...
 
class  AM2315
 API for the AM2315 Temperature & Humidity Sensor. More...
 
class  APA102
 API for controlling APA102/DotStar RGB LED Strips. More...
 
class  APDS9002
 UPM module for the APDS-9002 Luminance Sensor. More...
 
class  APDS9930
 APDS9930 Digital Proximity and Ambient Light Sensor. More...
 
class  AT42QT1070
 API for the Atmel AT42QT1070 QTouch Sensor. More...
 
class  BACNETMSTP
 UPM API for BACNETMSTP. More...
 
class  BACNETUTIL
 UPM Utility API for BACnet. More...
 
class  BH1749
 
class  BH1750
 UPM C API for the DFRobot I2C BH1750 Light Sensor. More...
 
class  BH1792
 
class  BISS0001
 API for the BISS0001 Motion Sensor. More...
 
class  BMA220
 API for the BMA220 3-axis Accelerometer. More...
 
class  BMA250E
 API for the BMA250E 10 bit Triaxial Accelerometer. More...
 
class  BMC150
 API for the BMC150 6-axis eCompass. More...
 
class  BME280
 API for the BME280 Digital Humidity, Pressure, and Temperature Sensor. More...
 
class  BMG160
 API for the BMG160 16 bit Triaxial Gyroscope. More...
 
class  BMI055
 API for the BMI055 6-axis Sensor Module. More...
 
class  BMI160
 UPM API for the BMI160 3-axis Accelerometer, Gyroscope and Magnetometer. More...
 
class  BMM150
 API for the BMM150 3-Axis Geomagnetic Sensor. More...
 
class  BMP280
 API for the BMP280 Digital Pressure Sensor. More...
 
class  BMPX8X
 API for the GY65/BMP085 and BMP180 Atmospheric Pressure Sensors. More...
 
class  BMX055
 API for the BMX055 9-axis Sensor Module. More...
 
class  BNO055
 API for the BNO055 Absolute Orientation 9DOF Fusion Hub. More...
 
class  Button
 API for the Button. More...
 
class  Buzzer
 API for the Buzzer component. More...
 
class  Callback
 
class  CJQ4435
 API for the CJQ4435 MOSFET. More...
 
class  Collision
 API for the Collision Sensor. More...
 
struct  coord_DD
 
class  CurieImu
 API for the Curie IMU via Firmata. More...
 
class  CWLSXXA
 API for the Veris CWLSXXA CO2 Sensor Family. More...
 
class  DFREC
 DFRobot EC Meter. More...
 
class  DFRORP
 API for the DFRobot ORP (Oxidation/Reduction Potential) Sensor. More...
 
class  DFRPH
 API for the DFRobot pH Sensors. More...
 
class  DS1307
 API for the DS1307 Real-Time CLock. More...
 
class  DS1808LC
 API for DS1808 Dual Log Digital Potentiometer as a Light Controller. More...
 
class  DS18B20
 API for the DS18B20 1-Wire Temperature Sensor. More...
 
class  DS2413
 API for the DS2413 1-Wire Dual Channel Addressable Switch. More...
 
class  E50HX
 UPM API for the Veris E50HX Energy Meter. More...
 
class  EBOLED
 API for EBOLED spi controlled OLED display. More...
 
class  ECEZO
 API for the EC-EZO EC Sensor. More...
 
class  ECS1030
 API for the ECS1030 Non-Invasive Current/Electricity Sensor. More...
 
class  EHR
 API for the Ear-clip Heart Rate Sensor. More...
 
class  ElDriver
 API for the EL Driver Module. More...
 
class  Electromagnet
 API for the Electromagnet. More...
 
class  EMG
 API for the Grove EMG Muscle Signal Reader. More...
 
class  ENC03R
 API for the ENC03R Single Axis Analog Gyro. More...
 
class  ES08A
 API for the ES08A Servo. More...
 
class  ES9257
 API for the ES9257 Servo. More...
 
class  Flex
 API for the Spectra Symbol Flex Sensor. More...
 
class  Gas
 
class  GFX
 GFX helper class. More...
 
class  GP2Y0A
 API for the GP2Y0A family of IR Proximity Sensors. More...
 
class  GPRS
 API for the GPRS Module. More...
 
struct  gps_fix
 
class  Grove
 
class  GroveButton
 API for the Grove Button. More...
 
class  GroveCircularLED
 API for the Grove Circular LED module. More...
 
class  GroveCollision
 API for the Grove Collision Sensor. More...
 
class  GroveEHR
 API for the Grove Ear-clip Heart Rate Sensor. More...
 
class  GroveElDriver
 API for the Grove EL Driver Module. More...
 
class  GroveElectromagnet
 API for the Grove Electromagnet. More...
 
class  GroveEMG
 API for the Grove EMG Muscle Signal Reader. More...
 
class  GroveGPRS
 API for the Grove GPRS Module. More...
 
class  GroveGSR
 API for the Grove GSR Galvanic Skin Response Sensor. More...
 
class  GroveLed
 API for the Grove LED. More...
 
class  GroveLEDBar
 API for Grove LED Bars base on the MY9221. More...
 
class  GroveLight
 API for the Grove Light Sensor. More...
 
class  GroveLineFinder
 API for the Grove Line Finder Sensor. More...
 
class  GroveMD
 API for the Grove I2C Motor Driver. More...
 
class  GroveMoisture
 API for the Grove Moisture Sensor. More...
 
class  GroveO2
 API for the Grove O2 Oxygen Gas Sensor. More...
 
class  GroveRelay
 API for the Grove Relay. More...
 
class  GroveRotary
 API for the Grove Rotary Angle Sensor (Knob) More...
 
class  GROVESCAM
 API for the Grove Serial Camera. More...
 
class  GroveSlide
 API for the Grove Slide Potentiometer. More...
 
class  GroveSpeaker
 API for the Grove Speaker. More...
 
class  GroveTemp
 API for the Grove Temperature Sensor. More...
 
class  GroveUltraSonic
 API for Grove Ultrasonic Ranger. More...
 
class  GroveVDiv
 API for the Grove Voltage Divider Sensor. More...
 
class  GroveWater
 API for the Grove Water Sensor. More...
 
class  GroveWFS
 API for the Grove Water Flow Sensor. More...
 
class  GSR
 API for the Grove GSR Galvanic Skin Response Sensor. More...
 
class  GUVAS12D
 API for the GUVA-S12D UV Sensor. More...
 
class  H3LIS331DL
 API for the H3LIS331DL-based Grove 3-Axis Digital Accelerometer (400g) More...
 
class  H803X
 UPM API for the Veris H803X Energy Meter. More...
 
class  HCSR04
 API for the HC-SR04 Ultrasonic Sensor. More...
 
class  HDC1000
 API for the HDC1000 Temperature & Humidity Sensor. More...
 
class  HDXXVXTA
 API for the Veris HDXXVXTA Humidity Transmitter. More...
 
class  HKA5
 API for theDFRobot Laser PM2.5 Sensor. More...
 
class  HLG150H
 API for HLG-150H Lighting Power Supply Controller. More...
 
class  HM11
 API for the HM-11 4.0 Bluetooth Low Energy Module. More...
 
class  Hmc5883l
 API for the HMC5883L 3-Axis Digital Compass. More...
 
class  HMTRP
 API for the HM-TRP Serial RF Pro transceiver. More...
 
class  HP20X
 API for the HP20X-based Grove Barometer (High-Accuracy) More...
 
class  HT9170
 API for the HT9170 DTMF Decoder. More...
 
class  HTU21D
 API for the HTU21D Temperature & Humidity Sensor. More...
 
class  HWXPXX
 UPM API for the Veris HWXPXX Hardware Protocol Humidity and Temperature Sensor. More...
 
class  HX711
 API for the HX711 Analog-to-Digital Converter. More...
 
class  IADC
 Interface for ADC Sensors. More...
 
class  ICO2Sensor
 Interface for CO Sensor. More...
 
class  IHumiditySensor
 Interface for Humidity Sensors. More...
 
class  ILI9341
 API for the ILI9342 LCD. More...
 
class  ILightController
 ILightController Interface for Light Controllers. More...
 
class  ILightSensor
 ILightSensor Interface for Light Sensors. More...
 
class  IModuleStatus
 
class  IMS
 API for the Catnip Electronics I2C moisture sensor. More...
 
struct  IMUDataItem
 
class  INA132
 API for the INA132 Differential Amplifier Sensor. More...
 
class  IPressureSensor
 
class  ISD1820
 API support for the ISD1820-based Grove Voice Recorder. More...
 
class  ITemperatureSensor
 Interface for Temperature Sensors. More...
 
class  Itg3200
 API for the ITG-3200 3-Axis Digital Gyroscope. More...
 
class  Jhd1313m1
 API for the JHD1313M1 I2C controller for HD44780-based displays with an RGB backlight, such as a Grove RGB I2C LCD display. More...
 
class  Joystick12
 API for the ElecFreaks* Joystick v 1.2-1.4 Breakout. More...
 
class  KX122
 
class  KXCJK1013
 KXCJK1013 Tri-axis Digital Accelerometer API. More...
 
class  KXTJ3
 
class  L298
 API for the L298 Dual H-Bridge Motor Driver. More...
 
class  L3GD20
 L3GD20 Tri-axis Digital Gyroscope API. More...
 
class  LCD
 
class  LCDKS
 API for the generic LCD Keypad Shield. More...
 
class  Lcm1602
 API for the LCM1602 I2C controller for HD44780-based displays. More...
 
class  LDT0028
 API for LDT0-028 PZT film-based sensors, such as a Grove Piezo Vibration sensor. More...
 
class  Led
 API for the LED. More...
 
class  LIDARLITEV3
 API for the LIDARLITEV3 Optical Distance Measurement Sensor. More...
 
class  Light
 API for the Light Sensor. More...
 
class  LineFinder
 API for the Line Finder Sensor. More...
 
class  LIS2DS12
 API for the LIS2DS12 3-axis Accelerometer. More...
 
class  LIS3DH
 API for the LIS3DH 3-axis Accelerometer. More...
 
class  LM35
 API for the DFRobot LM35 Linear Temperature Sensor. More...
 
class  LoL
 API for the Olimex LoL array. More...
 
class  Loudness
 API for the Loudness Sensor. More...
 
class  LP8860
 API for LP8860 LED Lighting Controller. More...
 
class  LPD8806
 API for the LPD8806 RGB LED Strip Controller. More...
 
class  LSM303AGR
 API for the LSM303AGR 3-Axis Geomagnetic Sensor. More...
 
class  LSM303D
 API for the LSM303D 3-Axis Geomagnetic Sensor. More...
 
class  LSM303DLH
 API for the LSM303DLH Accelerometer & Compass. More...
 
class  LSM6DS3H
 API for the LSM6DS3H 3-axis Accelerometer and Gyroscope. More...
 
class  LSM6DSL
 API for the LSM6DSL 3-axis Accelerometer and Gyroscope. More...
 
class  LSM9DS0
 API for the LSM9DS0 3-axis Gyroscope, Accelerometer, and Magnetometer. More...
 
class  M24LR64E
 C++ API for the M24LR64E NFC Tag. More...
 
class  MAG3110
 API for the MAG3110 Three-Axis Digital Magnetometer. More...
 
struct  mag3110_data_t
 
class  MAX30100
 API for the Pulse oximeter and heart-rate sensor. More...
 
class  MAX31723
 API for the MAX31723 Temperature Sensor. More...
 
class  MAX31855
 API for the MAX31855 Thermocouple Amplifier. More...
 
class  MAX44000
 API for the MAX44000 Ambient and Infrared Proximity Sensor. More...
 
class  MAX44009
 C++ API for MAX44009 chip (Ambient Light Sensor) More...
 
class  MAX5487
 API for the MAX5487 SPI Digital Potentiometer. More...
 
class  MAXDS3231M
 API for the MAXDS3231M I2C Real-Time Clock. More...
 
class  MAXSONAREZ
 API for the LV-MaxSonar-EZ Family of Ultrasonic Rangers. More...
 
class  MB704X
 API for the MB704x MaxSonar-WR Ultrasonic Ranger. More...
 
class  MCP2515
 API for the MCP2515 CAN bus controller. More...
 
class  MCP9808
 API for MCP9808 precision temprature sensor. More...
 
class  MD
 API for the I2C Motor Driver. More...
 
class  MG811
 API for the DFRobot CO2 Sensor. More...
 
class  MHZ16
 API support for the Grove CO2 sensor. More...
 
class  Microphone
 API for the Analog Microphone. More...
 
class  MICSV89
 API for the MICS-VZ89 Gas Sensor. More...
 
class  MLX90614
 API for the MLX90614 Temperature Sensor. More...
 
class  MMA7361
 API for the DFRobot MMA7361 Analog Accelerometer. More...
 
class  MMA7455
 API for the MMA7455 Accelerometer. More...
 
class  MMA7660
 API for the MMA7660 I2C 3-Axis Digital Accelerometer. More...
 
class  MMA8X5X
 API for the MMA8X5X Three-Axis Accelerometer. More...
 
struct  mma8x5x_data_t
 
struct  mma8x5x_params_t
 
class  MMC35240
 MMC35240 Tri-axis Magnetic Sensor API. More...
 
class  Moisture
 API for the Moisture Sensor. More...
 
class  MPL3115A2
 API for the MPL3115A2 Atmospheric Pressure Sensor. More...
 
class  MPR121
 API for the MPR121 I2C Touch Sensor. More...
 
class  MPU60X0
 API for the MPU60X0 3-axis Gyroscope and 3-axis Accelerometer. More...
 
class  MPU9150
 API for MPU9150 chip (Accelerometer, Gyro and Magnetometer Sensor) More...
 
class  MPU9250
 API for MPU9250 chip (Accelerometer, Gyro and Magnetometer Sensor) More...
 
class  MQ2
 API for the MQ2 Gas Sensor. More...
 
class  MQ3
 API for the MQ3 Gas Sensor. More...
 
class  MQ303A
 API for the MQ303A Alcohol Sensor. More...
 
class  MQ4
 API for the MQ4 Gas Sensor. More...
 
class  MQ5
 API for the MQ5 Gas Sensor. More...
 
class  MQ6
 API for the MQ6 LPG Gas Sensor. More...
 
class  MQ7
 API for the MQ7 CO Gas Sensor. More...
 
class  MQ8
 API for the MQ8 Hydrogen (H2) Gas Sensor. More...
 
class  MQ9
 API for the MQ9 Gas Sensor. More...
 
class  MS5611
 
class  MS5803
 UPM API for the MS5803 Pressure and Temperature sensor. More...
 
class  MY9221
 
class  NLGPIO16
 API for the NLGPIO16 16 channel USB GPIO Module. More...
 
class  NMEAGPS
 
struct  nmeatxt
 
struct  NoteData
 
class  NRF24L01
 API for the NRF24L01 Transceiver Module. More...
 
class  NUNCHUCK
 API for the Wii* Nunchuk controller. More...
 
class  O2
 API for the Grove O2 Oxygen Gas Sensor. More...
 
class  OTP538U
 API for the OTP538U IR Temperature Sensor. More...
 
class  OZW
 
class  OZWDUMP
 UPM Utility driver for OZW. More...
 
class  ozwInterface
 UPM Interface API for OpenZWave (OZW) More...
 
class  P9813
 API for controlling P9813/Chainable RGB LEDs. More...
 
class  PCA9685
 API for the PCA9685 16-channel, 12-bit PWM LED Controller. More...
 
class  PN532
 API for the PN532 based NFC/RFID reader/writer. More...
 
class  PPD42NS
 API for the PPD42NS Dust Sensor. More...
 
class  Pulsensor
 C++ API for the 3-Wire Pulse Sensor. More...
 
class  Relay
 API for the Relay. More...
 
class  RF22
 API for the RF22 Transceiver Module. More...
 
class  RFR359F
 API for the RFR359F-based Grove Distance Interrupter. More...
 
struct  RgbColor
 
class  RGBRingCoder
 API for the SparkFun* RGB RingCoder. More...
 
class  RHUSB
 UPM API for the Omega RH-USB Temperature and Humidity Sensor. More...
 
class  RN2903
 API for the Microchip RN2903 LoRa radio. More...
 
class  Rotary
 API for the Rotary Angle Sensor (Knob) More...
 
class  RotaryEncoder
 API for the Grove Rotary Encoder. More...
 
class  RPR220
 API for the RPR220-based Grove IR Reflective Sensor. More...
 
class  RSC
 Description for the RSC TruStability line. More...
 
struct  satellite
 
class  SCAM
 API for the Serial Camera. More...
 
class  Servo
 
class  SHT1X
 SHT1X Temperature and Humidity Sensor. More...
 
class  SI1132
 API for Si1132 UV and Visible Light Sensor. More...
 
class  SI114X
 API for the SI1145 UV Light Sensor. More...
 
class  SI7005
 
class  Slide
 API for the Slide Potentiometer. More...
 
class  SM130
 API for the SM130 RFID Reader Module. More...
 
class  SmartDrive
 API for the SmartDrive advanced motor controller from OpenElectronis. More...
 
class  Speaker
 API for the Speaker. More...
 
class  SSD1306
 API for SSD1306 I2C-controlled OLED displays. More...
 
class  SSD1308
 API for SSD1308 I2C-controlled OLED displays. More...
 
class  SSD1327
 API for SSD1327 I2C-controlled OLED displays. More...
 
class  SSD1351
 API for SSD1351 OLED displays. More...
 
class  ST7735
 API for the ST7735 LCD. More...
 
class  StepMotor
 API for the Stepper Motor. More...
 
class  SX1276
 API for the SX1276 LoRa/FSK modem. More...
 
class  SX6119
 API support for the SX6119-based Grove FM Receiver. More...
 
class  T3311
 UPM API for the T3311 MODBUS Temperature and Humidity Sensor. More...
 
class  T6713
 
class  T8100
 UPM API for the Amphenol Telaire Ventostat T8100 Ventilation Controller. More...
 
class  TA12200
 API for the TA12-200 Current Transformer. More...
 
class  TB7300
 Honeywell TB7300 Communicating Fan Coil Thermostat. More...
 
class  TCA9548A
 API TCA9548A Multiplexer Breakout. More...
 
class  TCS3414CS
 API for the TCS3414CS Color Sensor. More...
 
struct  tcs3414sc_rgb_t
 
class  TCS37727
 API for the TCS37727 Color Light-To-Digital Converter. More...
 
struct  tcs37727_data_t
 
class  TEAMS
 API for the Veris TEAMS Temperature Transmitter. More...
 
class  Temperature
 API for NTC Temperature Sensors. More...
 
class  TEX00
 API for the Veris TEX00 Temperature Sensor. More...
 
class  TH02
 API for the TH02 Temperature & Humidity Sensor. More...
 
struct  Time3231
 
class  TM1637
 API for the TM1637 7-Segment Display. More...
 
class  TMP006
 API for the TMP006 IR-Thermopile Sensor. More...
 
class  TP401
 API for the TP401 Gas Sensor. More...
 
class  TSL2561
 API for the TSL2561 Digital Light Sensor. More...
 
class  TTP223
 API for the TTP223 Touch Sensor. More...
 
class  TZEMT400
 UPM API for Trane TZEMT400 Z-Wave Thermostat. More...
 
class  UARTAT
 API for a Generic AT command based UART device. More...
 
class  ULN200XA
 UPM module for the ULN200XA Darlington Stepper Driver. More...
 
class  UltraSonic
 API for Grove Ultrasonic Ranger. More...
 
class  URM37
 API for the DFRobot URM37 Ultrasonic Ranger. More...
 
class  VCAP
 API for the Video Capture driver. More...
 
class  VDiv
 API for the Voltage Divider Sensor. More...
 
class  VEML6070
 API for the Vishay VEML6070 UV Sensor. More...
 
class  Water
 API for the Water Sensor. More...
 
class  WaterLevel
 UPM module for the Grove Water Level Switch. More...
 
class  WFS
 API for the Water Flow Sensor. More...
 
class  WheelEncoder
 API for the DFRobot Wheel Encoder. More...
 
class  WT5001
 API for the WT5001 Serial MP3 Module. More...
 
class  XBee
 API for the XBee modules. More...
 
class  YG1006
 API for the YG1006 Flame Sensor. More...
 
class  ZFM20
 API for the ZFM-20 Fingerprint Sensor Module. More...
 
class  zwNode
 Node management for ozw. More...
 

Typedefs

typedef void(* funcPtrVoidVoid) (Callback *)
 

Enumerations

enum  ADC121C021_CYCLE_TIME_T {
  ADC121C021_CYCLE_NONE = 0, ADC121C021_CYCLE_32 = 1, ADC121C021_CYCLE_64 = 2, ADC121C021_CYCLE_128 = 3,
  ADC121C021_CYCLE_256 = 4, ADC121C021_CYCLE_512 = 5, ADC121C021_CYCLE_1024 = 6, ADC121C021_CYCLE_2048 = 7
}
 
enum  displayAddressingMode { HORIZONTAL = 0, VERTICAL = 1, PAGE = 2 }
 
enum  gps_fix_quality {
  no_fix = 0, fix_sp, fix_dp, fix_pps,
  fix_rtk, fix_frtk, fix_dr, fix_manual,
  fix_simulation
}
 
enum  speed_rate_t { NRF_250KBPS = 0, NRF_1MBPS = 1, NRF_2MBPS = 2 }
 
enum  power_t { NRF_0DBM = 0, NRF_6DBM = 1, NRF_12DBM = 2, NRF_18DBM = 3 }
 

Variables

const uint8_t COLOR_WHITE = 0x01
 
const uint8_t COLOR_BLACK = 0x00
 
const uint8_t COLOR_XOR = 0x02
 
const uint8_t OLED_WIDTH = 0x40
 
const uint8_t VERT_COLUMNS = 0x20
 
const uint8_t OLED_HEIGHT = 0x30
 
const int BUFFER_SIZE = 192
 
const uint8_t LCD_CLEARDISPLAY = 0x01
 
const uint8_t LCD_RETURNHOME = 0x02
 
const uint8_t LCD_ENTRYMODESET = 0x04
 
const uint8_t LCD_DISPLAYCONTROL = 0x08
 
const uint8_t LCD_CURSORSHIFT = 0x10
 
const uint8_t LCD_FUNCTIONSET = 0x20
 
const uint8_t LCD_BACKLIGHT = 0x08
 
const uint8_t LCD_NOBACKLIGHT = 0x00
 
const uint8_t LCD_ENTRYRIGHT = 0x00
 
const uint8_t LCD_ENTRYLEFT = 0x02
 
const uint8_t LCD_ENTRYSHIFTINCREMENT = 0x01
 
const uint8_t LCD_ENTRYSHIFTDECREMENT = 0x00
 
const uint8_t LCD_DISPLAYON = 0x04
 
const uint8_t LCD_DISPLAYOFF = 0x00
 
const uint8_t LCD_CURSORON = 0x02
 
const uint8_t LCD_CURSOROFF = 0x00
 
const uint8_t LCD_BLINKON = 0x01
 
const uint8_t LCD_BLINKOFF = 0x00
 
const uint8_t LCD_DISPLAYMOVE = 0x08
 
const uint8_t LCD_MOVERIGHT = 0x04
 
const uint8_t LCD_MOVELEFT = 0x00
 
const uint8_t LCD_8BITMODE = 0x10
 
const uint8_t LCD_4BITMODE = 0x00
 
const uint8_t LCD_2LINE = 0x08
 
const uint8_t LCD_1LINE = 0x00
 
const uint8_t LCD_5x10DOTS = 0x04
 
const uint8_t LCD_5x8DOTS = 0x00
 
const uint8_t LCD_SETCGRAMADDR = 0x40
 
const uint8_t LCD_EN = 0x04
 
const uint8_t LCD_RW = 0x02
 
const uint8_t LCD_RS = 0x01
 
const uint8_t LCD_DATA = 0x40
 
const uint8_t LCD_CMD = 0x80
 
const uint8_t DISPLAY_CMD_OFF = 0xAE
 
const uint8_t DISPLAY_CMD_ON = 0xAF
 
const uint8_t BASE_LOW_COLUMN_ADDR = 0x00
 
const uint8_t BASE_HIGH_COLUMN_ADDR = 0x10
 
const uint8_t BASE_PAGE_START_ADDR = 0xB0
 
const uint8_t DISPLAY_CMD_MEM_ADDR_MODE = 0x20
 
const uint8_t BasicFont [][8]
 
const uint8_t DISPLAY_CMD_SET_NORMAL_1306 = 0xA6
 
const uint8_t SSD1306_SETCONTRAST = 0x81
 
const uint8_t SSD1306_DISPLAYALLON_RESUME =0xA4
 
const uint8_t SSD1306_DISPLAYALLON = 0xA5
 
const uint8_t DISPLAY_CMD_SET_INVERT_1306 = 0xA7
 
const uint8_t SSD1306_SETDISPLAYOFFSET =0xD3
 
const uint8_t SSD1306_SETCOMPINS = 0xDA
 
const uint8_t SSD1306_SETVCOMDETECT = 0xDB
 
const uint8_t SSD1306_SETDISPLAYCLOCKDIV = 0xD5
 
const uint8_t SSD1306_SETPRECHARGE = 0xD9
 
const uint8_t SSD1306_SETMULTIPLEX = 0xA8
 
const uint8_t SSD1306_SETLOWCOLUM = 0x00
 
const uint8_t SSD1306_SETHIGHCOLUMN = 0x10
 
const uint8_t SSD1306_SETSTARTLINE = 0x40
 
const uint8_t SSD1306_MEMORYMODE = 0x20
 
const uint8_t SSD1306_COLUMNADDR = 0x21
 
const uint8_t SSD1306_PAGEADDR = 0x22
 
const uint8_t SSD1306_COMSCANINC = 0xC0
 
const uint8_t SSD1306_COMSCANDEC = 0xC8
 
const uint8_t SSD1306_SEGREMAP = 0xA0
 
const uint8_t SSD1306_CHARGEPUMP = 0x8D
 
const uint8_t SSD1306_EXTERNALVCC = 0x1
 
const uint8_t SSD1306_SWITCHCAPVCC = 0x2
 
const uint8_t SSD1306_ACTIVATE_SCROLL = 0x2F
 
const uint8_t SSD1306_DEACTIVATE_SCROLL = 0x2E
 
const uint8_t SSD1306_SET_VERTICAL_SCROLL_AREA = 0xA3
 
const uint8_t SSD1306_RIGHT_HORIZONTAL_SCROLL = 0x26
 
const uint8_t SSD1306_LEFT_HORIZONTAL_SCROLL = 0x27
 
const uint8_t SSD1306_VERTICAL_AND_RIGHT_HORIZONTAL_SCROLL = 0x29
 
const uint8_t SSD1306_VERTICAL_AND_LEFT_HORIZONTAL_SCROLL = 0x2A
 
const uint8_t SSD1306_BLACK = 0
 
const uint8_t SSD1306_WHITE = 1
 
const uint8_t SSD1306_LCDWIDTH = 128
 
const uint8_t SSD1306_LCDHEIGHT = 64
 
const uint8_t DISPLAY_CMD_SET_NORMAL_1308 = 0xA6
 
const uint8_t DISPLAY_CMD_SET_NORMAL = 0xA4
 
const unsigned char font []
 

Detailed Description

C++ API for the kxtj3 driver.

C++ API for the bh1792 driver.

void PrintData(void *args)
{
std::vector<uint16_t> result = dev.GetMeasurements();
std::cout << "R: " << result.at(0) <<
", G: " << result.at(1) <<
", B: " << result.at(2) <<
", IR: " << result.at(3) <<
", G2: " << result.at(4) << std::endl;
dev.ResetInterrupt();
}
int main(int argc, char **argv)
{
signal(SIGINT, signal_int_handler);
dev.SoftReset();
dev.SensorInit(INT_JUDGE_1, MEAS_240MS, RGB_GAIN_1X, IR_GAIN_1X, RED);
dev.SetThresholdHigh(511);
std::cout << "Installing ISR" << std::endl;
dev.InstallISR(MRAA_GPIO_EDGE_FALLING, 33, &PrintData, NULL);
dev.EnableInterrupt();
dev.Enable();
while(!isStopped) {
upm_delay_ms(1000);
}
return 0;
}
void PrintData(void *args)
{
std::vector<std::vector<int>> fifo;
struct timespec now;
clock_gettime(CLOCK_MONOTONIC_RAW, &now);
try {
fifo = dev.GetFifoData();
std::cout << "\nHeart beat sensor FIFO data:" << std::endl;
for(int i = 0; i < 32; i++)
std::cout << i << ": off: " << fifo.at(i).at(0) << ", on: " <<
fifo.at(i).at(1) << std::endl;
std::cout << "timestamp " << now.tv_sec << " sec, " << now.tv_nsec <<
" nsec" << std::endl;
} catch (std::exception& e) {
std::cout << "Failed to read FIFO data" << std::endl;
throw;
}
}
int main(int argc, char **argv)
{
float measTime;
signal(SIGINT, signal_int_handler);
dev.SoftReset();
dev.EnableSyncMode(256, 32);
std::cout << "Installing ISR" << std::endl;
dev.InstallISR(MRAA_GPIO_EDGE_FALLING, 33, &PrintData, NULL);
measTime = dev.GetMeasurementTimeMS();
dev.StartMeasurement();
while(!isStopped) {
usleep(measTime * 1000);
}
return 0;
}
kxtj3.png

Enumeration Type Documentation

Valid cycle times for the automatic conversion mode

enum gps_fix_quality
strong

GPS fix quality values

Enumerator
no_fix 

No fix available or invalid

fix_sp 

Fix - single point

fix_dp 

Fix - differential point

fix_pps 

Fix - pulse per second

fix_rtk 

Fix - real time kinematic

fix_frtk 

Fix - float real time kinematic

fix_dr 

Fix - dead reckoning

fix_manual 

Fix - manual input

fix_simulation 

Fix - simulation mode