Orientation of V5 Brain

So does the orientation of the V5 Brain matter. Can you depending on the orientation of the brain flip the screen in some sort of settings so you don’t have to turn your head to read it or is there no way to do that? For example:

You can flip the screen upside down in the settings.

1 Like

Is it just upside down or can you do other orientations as well

I would imagine it’s only upside down, but you could program it yourself to be in whatever orientation with simple translational graphing math (in your own program, not the main UI)

1 Like

How could you do that?

Using the graphing utilities provided by VexCode API or if you’re using PROS, the LVGL or LCD library. Then you simply apply the same basic translational algebra principles you learn in school to the coordinates of whatever it is you want to display on the screen.

So can you use this in vex code? Because that is what I use. I already have an lcd screen so I would just modify it to turn all of the wording whatever degrees? Don’t get deceived by my name I am not extremely good but decent at coding so I am kind of confused.

Well it’s not as simple as that because the LCD is a rectangle not a square, so a lot of the stuff would get cut off. I can’t tell you exactly how to implement this logic because I have no idea what your code looks like. But like I said, any basic translational math works exactly the same for this. Start with rotating and translating a line on the LCD before you get to the more advanced stuff.

I encourage you to give this a read. I will not be providing any specific code for your case. Meaning, I will not code this for you. There are plenty more resources on google that explain this concept as well. I hope I guided you in the right direction :slight_smile:


Thank you. This might be helpful later on because of limited space for my v5 brain.

I know this might be a stupid question but do you know of any simulation of a v5 brain screen so I can try and figure this out?

Not sure about VexCode, but on PROS you can integrate the LVGL library. I’ve never used it, but there is an LCD simulator that you can use on there.

Take a look at this thread. @theol0403 will be able to help you

1 Like

So I might have to switch over to pros to be able to do this?

Unfortunately yes, but it’s only for LCD purposes. I’m sure you could translate that code over to VexCode somewhat easily. The API’s are different but I believe they still both use C++

1 Like

If you want to simulate the brain using vexcode-like API, your best bet is to use RMS Mimic, which has a brain display simulation (and RMS code is compatible with vexcode).

As for your original question, constructing a rotated GUI using the vexcode API will only be possible if the API supports rotation (especially text). I don’t think it does.

PROS uses a third-party C library for graphics (LVGL), which is very powerful but more advanced to use. However, since it is an open source C project (unlike the vexcode screen API), you can run and test LVGL code on your computer. I’m not sure if LVGL has a global rotation function, but since it is much more open it is feasible to program it to rotate (even if it involves manipulating the framebuffer).


20 characters

lvgl is available in vexcode there are just a couple of modifications that need to be made. check out this post Graphing on the V5 screen by @jpearman. like James said, you will need to know how libraries work and I highly suggest looking at the lvgl docs for info.

1 Like

What is a lvgl?
20 characters


It doesn’t, rotated text was always on my todo list, never had time to implement it, perhaps one day.


Oh ok thank you
20 characters

So that means I wouldn’t be able to do that with vex code?