microcontroller --- Pin references and cpu functionality¶
CPU information and control, such as
cpu.frequency(clock frequency). This object is the sole instance of
Dedicated delay method used for very short delays. Do not do long delays because this stops all other functions from completing. Think of this as an empty
whileloop that runs for the specified
(delay)time. If you have other code or peripherals (e.g audio recording) that require specific timing or processing while you are waiting, explore a different avenue such as using
Disable all interrupts. Be very careful, this can stall everything.
Enable the interrupts that were enabled at the last disable.
Configure the run mode used the next time the microcontroller is reset but not powered down.
Parameters: run_mode (RunMode) -- The next run mode
Reset the microcontroller. After reset, the microcontroller will enter the run mode last set by
This may result in file system corruption when connected to a host computer. Be very careful when calling this! Make sure the device "Safely removed" on Windows or "ejected" on Mac OSX and Linux.