mirror of
https://git.j0bot.ch/admin_j0bot/xerbot-arduino.git
synced 2026-11-29 07:55:08 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R75H65SynGwRG5vBSoYeZ1
15 lines
450 B
C++
15 lines
450 B
C++
// 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; }
|
|
};
|