添加反射率定标

This commit is contained in:
2025-03-26 09:27:34 +08:00
parent 09256a1972
commit 7558731dc4
642 changed files with 104260 additions and 255 deletions

View File

@ -0,0 +1,45 @@
#ifdef ARDUINO
# include <Arduino.h>
#else
# include <cstdio>
#endif
#include <Vector.h>
char storage[] = { 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '!', '\r', '\n' };
Vector<char> vector(storage, sizeof(storage));
#ifdef ARDUINO
void setup() {
Serial.begin(115200);
Serial.println("Starting up.");
}
void loop() {
Serial.print("Vector size is ");
Serial.println(vector.size());
Serial.print("Vector content: ");
for (unsigned int i = 0; i < vector.size(); i++) {
Serial.print(vector.at(i));
}
delay(2000);
}
#else /* !defined(ARDUINO) */
int main(int argc, char **argv) {
puts("Starting up.");
printf("Vector size is %d\n", vector.size());
printf("Vector content: ");
for (unsigned int i = 0; i < vector.size(); i++) {
putchar(vector.at(i));
}
return 0;
}
#endif