Skip to content
Miloš Viktorović
  • Home
  • Coaching
    • Coaching
    • Introduction to Agile
    • Practical (Remote) Agile
  • Posts & Publications
    • Publications
    • Flying
    • Blog
  • Projects
    • Research Project
    • Student IoT kit
    • CODES
  • About
  • Contact

[CODE] GrovePi_plus-startup

## ##########################################################
## @title: GrovePi+ startup script with Display
## @author: Milos Viktorovic
## @email: m.viktorovic@tue.nl
## @version: 1.0b [12-12-19]
## ##########################################################
import scripts.display as oled ## thing necessary for the OLED display
from time import sleep

## Modify the code below, by adding your part(s)!!!
import hello_world

hello_world.helloWorld()

print(">>> This could be your code! <<<")
print("Close this window if you want to run your code separately (press Ctrl+C to exit)")
    

### Display content ###

#initialize the display
display = oled.GroveOledDisplay128x64(bus=1)
i = 0;
while True:
    try:
        
        display.set_cursor(0, 0)
        display.puts('Hello students! ') ## must not exceed number of places on the screen!
        
        ### Here you can display your own values (instead of IOT)!
        ### DO NOT SET CURSOR AT LINE 6! (leave it to system script for IP address.
        display.set_cursor(1, 0)
        display.puts(" _ "+''+" ___ "+''+" _____ "+' ')
        display.set_cursor(2, 0)
        display.puts('| |'+''+'/   \\'+''+'|_   _|'+' ')
        display.set_cursor(3, 0)
        display.puts("| |"+''+"| | |"+''+"  | |   "+' ')
        display.set_cursor(4, 0)
        display.puts("|_|"+''+"\___/"+''+"  |_|   "+' ')
        
        ### Live bar
        display.set_cursor(5, 0)
        display.puts("===============")
        i = (i+1) % 13
        display.set_cursor(5, i)
        display.puts('>')
 
    except:
        print ("Error")
        
    sleep(5)
  • [CODE] GrovePi_plus-Example.py
  • [CODE] iot_simulator.py
  • [CODE] GrovePi_plus-startup
  • [CODE] mqtt_and_csv.py
  • [CODE] mqtt_messenger_example.py
  • [CODE] test_IoT.py

Recent Posts

  • Schnitzel flight! EHEH – EDRK
    Schnitzel flight! EHEH – EDRK
    03-Sep-2021
  • Private Pilot License – My journey to PPL!
    Private Pilot License – My journey to PPL!
    22-Apr-2021
  • Solo Cross-country Navigation flight (Big Triangle) EHEH ⇒ EHMZ ⇒ EHSE ⇒ EHEH
    Solo Cross-country Navigation flight (Big Triangle) EHEH ⇒ EHMZ ⇒ EHSE ⇒ EHEH
    13-Dec-2020
  • Spin & acrobatics on Super Decathlon
    Spin & acrobatics on Super Decathlon
    19-Oct-2020
  • Flight log EHEH-EHSE (via Rotterdam)
    Flight log EHEH-EHSE (via Rotterdam)
    19-Oct-2020

Recent Posts

  • Schnitzel flight! EHEH – EDRK
  • Private Pilot License – My journey to PPL!
  • Solo Cross-country Navigation flight (Big Triangle) EHEH ⇒ EHMZ ⇒ EHSE ⇒ EHEH

Archives

  • September 2021
  • April 2021
  • December 2020
  • October 2020
  • August 2020
  • June 2020
  • May 2020
  • January 2020
  • May 2019
Milos Viktorovic © 2025
By Posterity Theme
  • Home
  • Coaching
    • Coaching
    • Introduction to Agile
    • Practical (Remote) Agile
  • Posts & Publications
    • Publications
    • Flying
    • Blog
  • Projects
    • Research Project
    • Student IoT kit
    • CODES
  • About
  • Contact