Skip to content

knackwurstking/picow-led-microcontroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

PicoW LED Micro Controller

General Info

Default Port: 3000

Command Table

Set:

Group Command Args Response Data
config led <pin> ... null
led color <number> ... null

Get:

Group Command Args Response Data
config led - number[]
info temp - number
info disk-usage - { used: number, free: number }
info version - string
led color - []number

Request / Response Interface

NOTE: If the Request id is set to -1, the pico will skip the server response

interface Request {
  id?: number;
  group: string;
  type: string;
  command: string;
  args?: any[];
}

interface Response {
  id: number;
  error: string | null;
  data: any | null;
}