Category Archives: arduino

Storing when an Arduino sketch was Compiled

Storing when an Arduino sketch was Compiled

/// These are found and replaced by the compiler.
#define CompileDate __DATE__
#define CompileTime __TIME__
String CompileYear = CompileDate;
/// These are for returning copyright information, and storing this information in the code.
const String Copyright = "Philip McGaw"; ///< Copyright company / person's name.
String Product = "ProjectName";                   ///< Project name. (Updated when I make a release).
String Serial_Number = "-1";             ///< Placeholder - This is the serial number of the microprocessor.
const int Software_Version = 1;          ///< Firmware version. (Updated when I make a release).

 

This is an example of the code allowing the data to be sent out via the serial port.

CompileYear = CompileYear.substring(7, 11); ///< Cuts the string so it just contains the year.
Serial.println((String) "© " + Copyright + " " + CompileYear + " - " + Product);
Serial.println((String) "Software Version: \t\t" + Software_Version + " (" + CompileDate + " " + CompileTime + ")");
Serial.println((String) "Hardware Version: \t\t" + Hardware_Rev);
Serial.println((String) "Serial Number: \t\t\t" + Serial_Number);

Serial_Number and Hardware_Rev should both be -1, as they are not set in the code above.

Source: Storing when an Arduino sketch was Compiled – PhilipMcGaw.com

Duo series | Milk-V

Milk-V Duo is an ultra-compact embedded development platform based on the CV1800B chip. It can run Linux and RTOS, providing a reliable, low-cost, and high-performance platform for professionals, industrial ODMs, AIoT enthusiasts, DIY hobbyists, and creators.

The Milk-V Duo 256M is an upgraded version of Duo with a memory boost to 256M, catering to applications demanding larger memory capacities. It features the SG2002 computing series chip, elevating computational power to 1.0TOPS@INT8. It enables seamless switching between RISC-V/ARM architectures and supports simultaneous operation of dual systems. Additionally, it includes an array of rich GPIO interfaces such as SPI, UART, suitable for a wide range of hardware development in edge intelligent monitoring, including IP cameras, smart peephole locks, visual doorbells, and more.

Source: Duo series | Milk-V