The information here is intended for Pharo 10, and is not likely to work for previous or subsequent versions.
To display the Pharo Desktop by filling the OS host screen, do the following.
Display fullscreenOn.
deploySystem | |
World closeAllWindowsDiscardingChanges. | |
FreeTypeFontProvider current updateFromSystem. | |
MCRepositoryGroup | |
allSubInstancesDo: [ :gr | gr repositories do: [ :r | gr removeRepository: r ] ]. | |
IceRepository registry removeAll. | |
IceCredentialStore current | |
in: | |
[ :store | store allCredentials do: [ :each | each removeFrom: store ] ]. | |
Smalltalk cleanUp: true except: {} confirming: false. |
from websocket_server import WebsocketServer | |
import json | |
import base64 | |
import time | |
from threading import Timer | |
connecting = False | |
def update(client,server): | |
while connecting: |
import sys | |
from serial.tools import list_ports | |
def auto_select_port_name(port_name): | |
if port_name: | |
return port_name | |
port_names = [port.device for port in list_ports.comports()] | |
port_names.sort() | |
if len(port_names) == 0: | |
return None |
typedef uint32_t UINT; | |
UINT __aeabi_uidiv(UINT lhs, UINT rhs) | |
{ | |
UINT quotient = 0; | |
UINT remainder = 0; | |
for (int i = 31; i >= 0; i --) { | |
quotient <<= 1; | |
remainder <<= 1; |