Skip to content

Instantly share code, notes, and snippets.

View kshchepanovskyi's full-sized avatar

Kostiantyn Shchepanovskyi kshchepanovskyi

  • ICONIC21
  • Ukraine
View GitHub Profile
@kshchepanovskyi
kshchepanovskyi / LedControl.py
Created November 6, 2021 12:53
Simple python program to control Chromation Systems 24 Channel High Current USB LED Controller
# https://pic-microcontroller.com/24-channel-usb-connected-led-controller-upto-1a-per-channel-using-pic18f4550/
from random import randint
from time import sleep
import serial
ser = serial.Serial()
ser.port = 'COM2'
ser.baudrate = 19200
@kshchepanovskyi
kshchepanovskyi / about_message_field_default_value.md
Last active March 7, 2025 17:41
Protobuf: message field and default values

About default value for message fields

If field type is message, what should getter return if it is not set?

Proto2 specification does not define default value for message type, it is defined only for scalar types:

If the default value is not specified for an optional element, a type-specific