more commands, change display communication to new lib
This commit is contained in:
parent
38463ac109
commit
7213318838
31 changed files with 240 additions and 417 deletions
|
@ -1,3 +1,7 @@
|
|||
#VITE_TANK_SCREEN_URL=ws://172.23.43.79/screen
|
||||
#VITE_TANK_CONTROLS_URL=ws://172.23.43.79/controls
|
||||
#VITE_TANK_PLAYER_URL=http://172.23.43.79/player
|
||||
|
||||
VITE_TANK_SCREEN_URL=ws://vinzenz-lpt2/screen
|
||||
VITE_TANK_CONTROLS_URL=ws://vinzenz-lpt2/controls
|
||||
VITE_TANK_PLAYER_URL=http://vinzenz-lpt2/player
|
||||
|
|
|
@ -11,7 +11,7 @@ const offColor = [0, 0, 0, 255];
|
|||
|
||||
function getIndexes(bitIndex: number) {
|
||||
return {
|
||||
byteIndex: 10 + Math.floor(bitIndex / 8),
|
||||
byteIndex: Math.floor(bitIndex / 8),
|
||||
bitInByteIndex: 7 - bitIndex % 8
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue