Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Manny

Pages: 1
1
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 /

2
ok so I changed this code in videoPlayerEffects.h

void showChannelNumber() {
  char channelString[] = "0";
  //if(currentFileNum>9){
  //   channelString[0]+= currentFileNum/10;
  //}
  channelString[0] += (currentFileNum % 10);
  int yOffset = 50;
  int xPosition = 80;
  int xWidth = display.getPrintWidth(channelString);



to this




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);




Now I have double digits like 02, 03, 04, 05 etc. but I still cant get the channel numbers to go above 09


If I change this line
 channelString[1] += (currentFileNum % 10);

to this

 channelString[0] += (currentFileNum % 10);

The channels will go up by 10s like 20, 30, 40, 50  etc


Does anyone know what I cant try?

3
How does a noob like me edit the code to make the TnyTV display double digit channel numbers?
What I mean is currently the TinyTV displays channels 0 to 9. I would like to change that to channel 0 to 20 or 1 to 20.
I Found one section in the Sketch for channel numbers that says something like 0 to 10 but when I change the 10 to something higher, only special characters are displayed beyond channel 9 on the TinyTV and are still in single digits.


Edited:
I did it. Heres the fix.

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 /

4
User Projects / Code Examples / Re: Tiny TV
« on: May 13, 2020, 03:48:02 PM »
Hello Manny,

You can find the TinyTV program on github, or you can download it directly with this link: https://github.com/TinyCircuits/TinyCircuits-TinyTV-ASK4002/raw/master/examples/TinyTV.zip

To get coding, you would want to go through the TinyScreen+ Getting Started tutorial to make sure you have all the right background software: https://learn.tinycircuits.com/Processors/TinyScreen+_Setup_Tutorial/

Let me know if you have any questions!

RĂ©na

5
User Projects / Code Examples / Tiny TV
« on: May 11, 2020, 06:42:32 PM »
Where can I get the Tiny TV code for my Tinyscreen+ please? I purchsed the Tinyscreen+ kit only to find out that it does not function the same as my Tiny TV. I am stick in video player mode on my tinyscreen + kit and I can not get the settings menu to pop up, so I cant change it to tiny TV mode. I think maybe the firmware on the kit is incomplete compared to the tiny tv.

I also have a problem with my Tiny TV when I add a lot of videos, when changing the channels, on the second pass, channel 2 is displayed twice. I would like to look at the code to see if i can do some kind of simple fix since I dont know how to code from scratch.

Pages: 1
SMF spam blocked by CleanTalk