machine — access to the Kookaberry microcomputer
This module provides access to the Kookaberry microcomputer facilities like the A/D and D/A Converters, serial interfaces, Real Time Clock, and timers.
The focus in this guide is on the core Kookaberry functionality to ensure that scripts are portable between Kookaberry models. There are two variants of the Kookaberry using STM32 and RP2040 / RP2350 microcomputers. These each have features and functions particular to their microcomputers that are beyond those covered in this guide.
The additional functionality can be examined by using these commands in the KookaIDE REPL:
import machine
# Loads the machine module
dir(machine)
# Lists the classes available within the machine module
dir(machine.Pin)
# Lists the methods and data items in the machine.Pin class
help(machine.Pin)
# A more expansive listing of what is in the machine.Pin class
# Do the same for other machine classes
# Also search the MicroPython documentation for further explanations
Kookaberry machine Classes
- class ADC – analog to digital conversion
- class DAC – digital to analog conversion
- Kookaberry GPIO Pins
- class Pin – control I/O pins
- class PWM – pulse width modulation
- class RTC – real time clock
- class SoftI2C – a two-wire serial protocol
- class SoftSPI – a Serial Peripheral Interface bus protocol (master side)
- class Timer – control internal timers
- class UART – duplex serial communication bus
- Low-level machine Access