A downloadable display simulator for Windows and Android

  • 128x64 OLED simulator written in Unity, uses lua scripting to make custom scripts for diplay. Example can be a simple Trex game.

To open a custom script:

Universal: Scripts have to have a name and end with .lua extension

Windows: Place it in a Resource folder located in a DisplaySimulator_Data folder.

Android: Place it on a internal storage.

THIS IS NOT A FINISHED PROJECT, it has bugs and a lot of features aren't there, also preformance is not the greatest.

Every scirpt has to have three functions written:

  • OnStart() - Is executed on start
  • OnUpdate() - Is executed every frame(not locked)
  • SysTick_Handler() - Is executed on every tick (locked to 30fps)

Available functions:

  • OLED.DrawPixel(int x, int y, int value, bool transparent ) - Set pixel at coordinate x,y with value of 1 - on, 0 - off
  • OLED.DrawPixels(int[] screen, int x, int y, int width, int height, bool transparent) - Set pixels from 1d image array
  •  OLED.DrawText(int x, int y, string text, bool transparent) - Set pixel from text, starting at point x, y, where y is screen height divided by 5
  • OLED.UpdateScreen() - Moves pixels from buffer to display
  • OLED.Clear() - Clears buffer
  • OLED.IsPressed(Button button) - Checks if button is pressed, returns false or true
  • OLED.IsUp(Button button) - Checks if button is up
  • OLED.IsDown(Button button) - Checks if button is down, returns false or true
  • OLED.GetDeltaTime() - Gets delta time from last frame
  • OLED.GoBackToMenu() - Returns to menu
  • OLED.GetWidth() - Gets width of screen, returns int
  • OLED.GetHeight() - Gets height of screen, returns int
  • OLED.Button  = {Up, Right, Down, Left, A, B}, e.g. OLED.Button.Up, returns button up.
PlatformsWindows, Android
Made withUnity
Tags2D, display, lua, Pixel Art, simuation, Unity
Average sessionA few seconds
InputsMouse, Touchscreen


Display Simulator Beta 0.1 19 MB
Display Simulator Beta 0.1 27 MB

Development log

Leave a comment

Log in with itch.io to leave a comment.