pages module

class pages.NTP(display)[source]

Bases: pages.Page

Page to check the clock is connected to WiFi and get time from NTP

ready(current_ticks, now)[source]

Is this page ready to run?

Parameters:
  • current_ticks – The current system ticks
  • now – The current time
Returns:

Ready to run?

show(now)[source]

Display this page

Parameters:now – The current time
Returns:Finished showing for this schedule
class pages.PacMan(display)[source]

Bases: pages.Page

Page to show PacMan moving across the screen

ready(current_ticks, now)[source]

Is this page ready to run?

Parameters:
  • current_ticks – The current system ticks
  • now – The current time
Returns:

Ready to run?

show(now)[source]

Display this page

Parameters:now – The current time
Returns:Finished showing for this schedule
class pages.Page[source]

Define a page

ready(current_ticks, now)[source]

Is this page ready to run?

Parameters:
  • current_ticks – The current system ticks
  • now – The current time
Returns:

Ready to run?

show(now)[source]

Display this page

Parameters:now – The current time
Returns:Finished showing for this schedule
class pages.Seconds(display)[source]

Bases: pages.Page

Page to show a seconds ticker across the top of the screen

ready(current_ticks, now)[source]

Is this page ready to run?

Parameters:
  • current_ticks – The current system ticks
  • now – The current time
Returns:

Ready to run?

show(now)[source]

Display this page

Parameters:now – The current time
Returns:Finished showing for this schedule
class pages.StarWars[source]

Bases: pages.Page

Page to play StarWars on button press

ready(current_ticks, now)[source]

Is this page ready to run?

Parameters:
  • current_ticks – The current system ticks
  • now – The current time
Returns:

Ready to run?

show(now)[source]

Display this page

Parameters:now – The current time
Returns:Finished showing for this schedule
class pages.Time(display)[source]

Bases: pages.Page

Page to show the current time

ready(current_ticks, now)[source]

Is this page ready to run?

Parameters:
  • current_ticks – The current system ticks
  • now – The current time
Returns:

Ready to run?

show(now)[source]

Display this page

Parameters:now – The current time
Returns:Finished showing for this schedule