Skip to content

Instantly share code, notes, and snippets.

View RobAxt's full-sized avatar
🎯
Focusing

RobAxt

🎯
Focusing
View GitHub Profile
@RobAxt
RobAxt / ao.c
Last active October 30, 2024 16:39
Active Object: private data handler
#include "ao.h"
static const uint8_t QUEUE_LENGTH_= 3;
static const uint8_t QUEUE_ITEM_SIZE_ = sizeof(ao_event_t);
struct ao_s
{
QueueHandle_t queue_h;
ao_event_handler_t event_h;
ao_privData_t privData_h;
@RobAxt
RobAxt / descriptions.json
Created March 11, 2024 20:40 — forked from stellasphere/descriptions.json
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/01d@2x.png"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/01n@2x.png"
}
@RobAxt
RobAxt / gist:23160951284ba6606e3f69a4dbd1e52b
Created December 16, 2020 03:22 — forked from sentinelt/gist:3f1a984533556cf890d9
Program to set arbitrary speed
/*
* Allows to set arbitrary speed for the serial device on Linux.
* stty allows to set only predefined values: 9600, 19200, 38400, 57600, 115200, 230400, 460800.
*/
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <asm/termios.h>
int main(int argc, char* argv[]) {