ppn_all.py

Created by tlake

Created on August 07, 2024

405 Bytes


# readable screen parameters

# screen coords & dims
ppn_y0, ppn_w, ppn_h = 0, 0, 0

# color screen
ppn_has_color, ppn_need_show = True, False

def col_lst2int(c): return c[0]>>3<<11 | c[1]>>2<<5 | c[2]>>3
def col_int2lst(c): return (c>>11<<3 & 255, c>>5<<2 & 255, c<<3 & 255)
def myInternalException(sdev): raise Exception('Error in device (' + sdev + ') init. Try updating device + ppn.')

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.