User Tools

Site Tools

한국어

logicpython:index

This is an old revision of the document!


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

The CUBLOC API pages are grouped by category. Each entry links to a dedicated page and includes a short description.

Analog Input

  • 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

This feature is supported only on models with built-in FRAM.

  • EERead - Read data from an EEPROM.
  • EEWrite - Write data to an EEPROM.

PWM

  • Pwm - Output a PWM waveform on the specified channel.
  • PwmOff - Stop PWM output on the specified channel.

MDOBUS RTU Communication

  • OpenCom - Enable serial communication on a CUBLOC-style channel.
  • 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.
logicpython/index.1776045720.txt.gz · Last modified: by mfranklin