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.


Topics - OO-MCP

Pages: 1
1
General Discussion / BMP file on Tinyscreen
« on: September 12, 2018, 10:55:09 AM »
Hi there. I'm trying to show a BMP file on the Tinyscreen, but all I get is...Well, nothing. No error messadge and black screen. Uploading the code is going well, but with no result, no display from the BMP file from the SD Card.
The code that I'm using is from Codebender https://codebender.cc/sketch:86070#TinyScreen_Bitmap_Display.ino
Changed both 1.bmp into the filenames on the SD Card. My hardware is the Tinyscreen with USB, batteryplug, buttons and switch and the SD Card print.
Displaying text is working well and I know how to write that code now.
Can anyone help me here?
Just pointing my nose in the correct direction would be fine.
Doing my best...but hey...maybe I'm too old to learn all this :-)


2
General Discussion / From landscape to portrait
« on: August 16, 2018, 05:03:32 AM »
Hi all, Newby and this could be a simple question for you all.
I'm starting with the TinyScreen and eventualy I want to build a little instrument for the cockpit from my scaleglider.
To do that, the first thing I have to learn is rotating the example on the screen, that is now horizontal.
Anyone who could help me? I assume this is the part where the change has to come? Rectangle to something else?

void hardwareDrawCommands(){
  //Accelerated drawing commands are executed by the display controller
  //clearScreen();//clears entire display- the same as clearWindow(0,0,96,64)
  display.clearScreen();
  //drawRect(x stary, y start, width, height, fill, 8bitcolor);//sets specified OLED controller memory to an 8 bit color, fill is a boolean- TSRectangleFilled or TSRectangleNoFill
  display.drawRect(10,10,76,44,TSRectangleFilled,TS_8b_Red);
  //drawRect(x stary, y start, width, height, fill, red, green, blue);//like above, but uses 6 bit color values. Red and blue ignore the LSB.
  display.drawRect(15,15,66,34,TSRectangleFilled,20,30,60);
  //clearWindow(x start, y start, width, height);//clears specified OLED controller memory
  display.clearWindow(20,20,56,24);
  //drawLine(x1, y1, x2, y2, 8bitcolor);//draw a line from (x1,y1) to (x2,y2) with an 8 bit color
  display.drawLine(0,0,95,63,TS_8b_Green);
  //drawLine(x1, y1, x2, y2, red, green, blue);//like above, but uses 6 bit color values. Red and blue ignore the LSB.
  display.drawLine(0,63,95,0,0,63,0);
  delay(1000);
  //use 16 bit version of drawLine to fade a rectangle from blue to green:
  for(int i=0;i<64;i++){
    display.drawLine(0,i,95,i,0,i,63-i);
  }
  delay(1000);
}

Thanks
Martin

Pages: 1
SMF spam blocked by CleanTalk