1
User Projects / Code Examples / Re: TinyTV double digits channel numbers
« on: January 25, 2023, 09:09:37 PM »
I'm new to all this stuff, but I have Arduino IDE and wanted to customize the TinyTV code
but I'm already stuck with it asking what board I have.. and I can't find any details of the exact board for the TinyTV.
but I'm already stuck with it asking what board I have.. and I can't find any details of the exact board for the TinyTV.
I got it working. Woohoo. I figured iit out myself.
Heres the code
void showChannelNumber() {
char channelString[] = "00";
if(currentFileNum>9){
channelString[0]+= currentFileNum/10;
}
channelString[1] += (currentFileNum % 10);
int yOffset = 50;
int xPosition = 80;
int xWidth = display.getPrintWidth(channelString);
This fix was to use my previous changes and also uncomment the forward slashes /