MicroView and Phoenard Arduino Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
GreatAnubis

Avatar / Picture

Junior Member
Registered:
Posts: 6
Reply with quote  #1 
Hi, 
I would like to plug my MicroView to my screen USB port. It's obvious I can't move tha USB port. Unforunately it's located on the left side of the screen. Which makes the display flipped horizontally. Can I flip the display programmatically?
micro

Avatar / Picture

Administrator
Registered:
Posts: 141
Reply with quote  #2 
Yes it is very possible to change but if you want to use the text display functions etc you would need to slightly alter those, so basically use your own version of the .h library.

The screen bytes go left to right (64) and then 6 rows of those, each byte stores 8 pixels downwards, so a bit of manipulation is done in the librarys anyway

If you are coding your own things, and dont want to adjust the library, you could just use the pixel set type instructions and draw instructions with the x or y values subtracted from the maximums, depending on which way you want the rotate
MLXXXp

Avatar / Picture

Senior Member
Registered:
Posts: 75
Reply with quote  #3 
If you happened to read my previous post in this thread, which I've deleted, ignore it.

There are MicroView library commands to flip the display, both horizontally and vertically. Just add the following to your sketch, anywhere after uView.begin();
uView.flipHorizontal(true);
uView.flipVertical(true);

Setting the argument to false will restore normal operation.

GreatAnubis

Avatar / Picture

Junior Member
Registered:
Posts: 6
Reply with quote  #4 
It works [thumb]! Thank you! I've been searching for that for last few months without any luck... and now I feel so stupid because the solution is so simple...  [frown]


Attached Images
jpeg Micro.jpg (43.04 KB, 7 views)

yotastalker

Junior Member
Registered:
Posts: 4
Reply with quote  #5 
I'm having similar problems but the Flip method is not helping me. It mostly just prints the characters backwards. 

Thanks,

Yotastalker
MLXXXp

Avatar / Picture

Senior Member
Registered:
Posts: 75
Reply with quote  #6 
Are you using both flipHorizontal() and flipVertical() ?
yotastalker

Junior Member
Registered:
Posts: 4
Reply with quote  #7 
lol, no.

I'm just printing my name and it prints upside down because it sits on the other side of my laptop. I tried using the vertical flip then the horizontal, but they didn't work. I'm using Visual Studio now with the Arduino library so maybe I'll be able to see something I'm missing.

Any ideas?

Thanks
MLXXXp

Avatar / Picture

Senior Member
Registered:
Posts: 75
Reply with quote  #8 
Quote:
Originally Posted by yotastalker

I tried using the vertical flip then the horizontal, but they didn't work.


You have to use both. If you're doing this, perhaps you can post a sketch that will demonstrate the problem?

yotastalker

Junior Member
Registered:
Posts: 4
Reply with quote  #9 
Ohh, yeah. That makes sense. I'll try that and let you know. lol
GreatAnubis

Avatar / Picture

Junior Member
Registered:
Posts: 6
Reply with quote  #10 
yeah, flipping text is kind of mirroring it - vertically or horizontally. That's why you've seen your text inverted. However, if you use both it should look rotated by 180deg. 

just let us know if that fixed your problem 😉

cheers
yotastalker

Junior Member
Registered:
Posts: 4
Reply with quote  #11 
Yes! It did. Thanks, I've been busy doing other projects.

I'm just getting into C++ from as a C# newbie.

[thumb]
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!