Files

copied

Scanning the repository...

Last update 5 years 8 months by Tom Whitwell
FilesRadioMusic
..
AnalogInput.cpp
AnalogInput.h
AudioEngine.cpp
AudioEngine.h
AudioFileInfo.h
AudioSystemHelpers.h
DebugUtils.h
FileScanner.cpp
FileScanner.h
Interface.cpp
Interface.h
LedControl.cpp
LedControl.h
PlayState.cpp
PlayState.h
README.MD
RadioMusic.h
RadioMusic.ino
Radio_Music_Next.txt
RamMonitor.h
SDPlayPCM.cpp
SDPlayPCM.h
Settings.cpp
Settings.h
Tuning.cpp
Tuning.h
WavHeaderReader.cpp
WavHeaderReader.h
DebugUtils.h
#ifndef DebugUtils_h #define DebugUtils_h #include "Arduino.h" void showAddress(void* thing) { uint16_t ptr; char string[]="0123456789ABCDEF"; // array of characters corresponding to numbers from 0 to 15 /* these lines go inside the loop */ ptr = (uint16_t) &thing; // store 16-bit address of 'value' Serial.write( string[ (ptr >> 12) & 0xF ] ); // Write out highest 4-bits of memory address Serial.write( string[ (ptr >> 8) & 0xF ] ); Serial.write( string[ (ptr >> 4) & 0xF ] ); Serial.write( string[ (ptr >> 0) & 0xF ] ); // Write out lowest 4-bits of memory address } #endif
Report a bug