1
User Projects / Code Examples / Re: TinyTV double digits channel numbers
« on: May 13, 2020, 07:52:47 PM »
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 /
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 /