I’ll respond in this thread since it’s more relevant. What you can do is add a c function to extensions.ino that returns the symbol of the platform you’re using. You can #ifdef
the different strings from the c code for different platforms. Unfortunately I don’t have any way to test this code at the moment but it would be like
object *fn_platform (object *args, object *env) {
(void) env;
#ifdef PICOCALC
return lispstring(":picocalc");
#else if def T-DECK
return lispstring(":t-deck");
#else
//Other stuff
#endif
}
That’s not actual code, you’d have to figure out the details there but I hope it shows you the idea. You can see here how to fully add c functions to extensions.ino http://www.ulisp.com/show?19Q4