LogicPython
LogicPython is a browser-based Python development environment for microcontrollers.
The target device must be a microcontroller board device with LogicPython firmware installed.
You can edit code, deploy to the device, run programs, monitor output, and use AI-assisted editing.
User Guide
CUBLOC API Reference
LogicPython includes a CUBLOC API for those who wish to leverage their familiarity with the CUBLOC platform.
ADIn - Read the full MicroPython ADC value from the specified ADC
channel.
Digital I/O
High - Set a digital output
pin high.
In - Read a digital input value from a
pin.
Input - Configure a
pin as digital input.
Low - Set a digital output
pin low.
Out - Write a digital output
value to a
pin.
Output - Configure a
pin as digital output.
Reverse - Toggle the output state of the specified
pin.
Memory and Storage
EERead - Read data from a non-volatile memory.
EEWrite - Write data to a non-volatile memory.
PWM
Pwm -
Output a PWM waveform on the specified
channel.
PwmOff - Stop PWM output on the specified
channel.
Modbus RTU Process
SetModbus - Start the LogicPython Modbus RTU slave worker using a pre-opened UART
channel.
Stepper and Pulse Motion
StepAccel -
Output an accelerated pulse train on step
channel 0 using a PIO state machine.
StepPulse -
Output a finite pulse train on the specified
pin using a PIO state machine.
StepStat - Return how many pulses have been generated by the most recent
StepPulse or
StepAccel command on the
channel.
StepStop - Immediately stop pulse output on the specified step
channel.