Open vkvark opened 1 year ago
Yes, FastIO can not accept defined constants or variables. It is not an error. FastIO not designed for such a type of source.
taken from here
// ======================================================= // Larduino HSP for LGT8FX8D/P series // Fast.IO demostration // ======================================================= // Important note: // fast_io interface is implemented by macro definition // Compare to arduino's digital i/o interface, fast_io // is small and fast. // But fastio has some limitations: // 1. only support digital mode i/o operation; **// 2. fastio DO NOT support avriable as arguments!_** // e.g, you can not use fastio as following: // int led = 10; // fastioMode(led, OUTPUT); // but you can use it like this: // #define led 10 // fastioMode(led, OUTPUT); // or fastioMode(10, OUTPUT); // or fastioMode(D10, OUTPUT); // ========================================================
Then you should change the comment:
// but you can use it like this: // #define led 10 // fastioMode(led, OUTPUT); // or fastioMode(10, OUTPUT); // or fastioMode(D10, OUTPUT);
Because this code will not work.
Hi, still the same thing here
Very strange, if I try to compile this sketch:
Arduino IDE will not compile it, giving me the error below: