Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Versions
🫐 Berry
Modern and secure Rapberry PI GPIOs interface.
Control Digital GPIOs of the rapsberry pi board.
using pin = await Pin.connect({ id: 1, direction: Pin.Direction.INOUT })
await pin.read() //Pin.Value.(LOW | HIGH)
await pin.write(Pin.Value.LOW) //Set pin to LOW
//pin is automatically released and clean outside of the scopeControl PWM GPIOs of the rapsberry pi board.
using pwm0 = await PWM.connect({ id: 12 })
await pwm0.setPeriod(15) //15ns period
await pwm0.setDutyCycle(0.5) //7ns HIGH - 7ns LOW
await pwm0.enable()
//pwm0 is automatically released and clean outside of the scope