clearRAM()
[RAM]
void clearRAM ();Description
Clears the RAM memory by writing zeros to all addresses.
Parameters
None.
Returns
Nothing.
Example Code
The code initializes the RAM with a size of 1024 bytes and a width of 1 byte and clears the RAM memory.
void setup() {
beginRAM(1024); // initializes the RAM memory with a size of 1024 bytes and a data width of 1 byte
}
void loop() {
clearRAM(); // clears the RAM memory
}Notes and Warnings
- The
clearRAM()function can only be used after thebeginRAM()function. - The
clearRAM()function can be called multiple times to clear the RAM memory, even inside the loop.
