Skip to content

Instantly share code, notes, and snippets.

@slintak
slintak / _README.md
Last active June 5, 2024 20:12
Meshtastic AI Chat Assistant Integration

This gist contains a proof of concept project (hacked together during one evening) aimed at connecting an AI chat assistant to the Meshtastic network, enhancing its capabilities. The assistant is designed to provide concise and helpful responses within the constraints of the Meshtastic environment.

Project Overview:

This project brings together two favorite elements: the Meshtastic network and an AI chat assistant. The assistant is based on the "FuseChat-7B-VaRM-Q5_K_M" model, and the code is written in Python.

@slintak
slintak / 00_uvod.md
Last active April 20, 2023 11:34
Příklady použití "sscanf" v Arduino.

Následující příklady ukazují zpracování řetězců přijatých po sériové lince (UART) na platformě Arduino. Vše bylo vyzkoušeno s deskou Arduino Uno, ovšem příklady budou fungovat na všech deskách, které podporují platformu Arduino.

Příklady jsou koncipovány tak, aby čtenáře postupně seznámili s příjmem řetězců od uživatele a jejich převodem na číslo. K převodu řetězce na číslo nejdříve používáme vlastní implementaci, později pak funkci atoi() a na závěr pak funkci sscanf().

@slintak
slintak / jiriho
Last active August 29, 2015 13:56 — forked from jiriw/jiriho
// blik.h**********************************************************************************
#ifndef BLIK_H_INCLUDED
#define BLIK_H_INCLUDED
#include <stdint.h>
extern void blik(void);
void morse (uint8_t i);
#endif // BLIK_H_INCLUDED
int main (void)
{
// DDRG nemuzes predefinovat, to uz existuje
//DDRG |= _BV(PG1); //LED9 pro blik
//DDRG |= _BV(PG0); //LED10 pro SOS
BLIK |= _BV(PG1); //LED9 pro blik
SOS |= _BV(PG0); //LED10 pro SOS
uint8_t pole[] = { 1,0,1,0,1,0,0,1,1,1,0,1,1,1,0,1,1,1,0,0,1,0,1,0,1 };