eamars / OpenTrickler-RP2040-Controller

OpenTrickler controller application on RP2040 platform
https://discord.gg/ZhdThA2vrW
GNU General Public License v3.0
13 stars 8 forks source link

Create abstracted scale class #8

Closed eamars closed 5 months ago

eamars commented 1 year ago

The abstracted scale class shall enable:

eamars commented 1 year ago

Generated by ChatGPT:

 // Define the template struct
 typedef struct {
    // Function pointers for read and write methods
    void (*read)(void *self);
    void (*write)(const void *self);
    uint baudrate;
} scale_handler_t;