Package com.codename1.hardware


package com.codename1.hardware

Buses and pins of embedded devices: GPIO lines (GpioPin, GpioListener), I2C (I2cDevice), SPI (SpiDevice), serial ports (SerialPort), PWM (PwmChannel), CAN (CanBus, CanFrame), the hardware watchdog (Watchdog) and backlight brightness.

Hardware.getInstance() is the entry point. Ports without hardware access report every feature as unsupported, so an application written against this package also runs on phones, desktops and the simulator.