xerbot 0.1.0 : le contrat xerbot v1 pour Arduino / PlatformIO (USB, ESP-NOW, Bluetooth), 6 exemples dont RuView CSI, test natif 8/8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R75H65SynGwRG5vBSoYeZ1
This commit is contained in:
14
test/Arduino.h
Normal file
14
test/Arduino.h
Normal file
@@ -0,0 +1,14 @@
|
||||
// un faux Arduino.h pour tester le cœur sur la machine (g++)
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
inline unsigned long millis() { static unsigned long t = 0; return t += 1; }
|
||||
struct Stream {
|
||||
std::string in, out;
|
||||
int available() { return (int)in.size(); }
|
||||
int read() { char c = in[0]; in.erase(0, 1); return c; }
|
||||
void print(const char* s) { out += s; }
|
||||
void print(char c) { out += c; }
|
||||
};
|
||||
Reference in New Issue
Block a user