Skip to content

Commit

Permalink
Migrate to new IO library.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Apr 3, 2024
1 parent e61b3ba commit 9fde39c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [published]

env:
TOIT_VERSION: v2.0.0-alpha.121
TOIT_VERSION: v2.0.0-alpha.144

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pixel_display
description: Common code to drive all pixel-based displays.
environment:
sdk: ^2.0.0-alpha.121
sdk: ^2.0.0-alpha.144
dependencies:
png-tools:
url: github.com/toitware/toit-png-tools
Expand Down
2 changes: 1 addition & 1 deletion src/true-color.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Functions and constants useful for the RGB
See for example https://pkg.toit.io/package/github.com%2Ftoitware%2Ftoit-color-tft
*/

import binary show BIG-ENDIAN
import io show BIG-ENDIAN
import bitmap show *
import font show Font

Expand Down
6 changes: 3 additions & 3 deletions tests/package.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk: ^2.0.0-alpha.121
sdk: ^2.0.0-alpha.128
prefixes:
host: pkg-host
pictogrammers_icons: toit-icons-pictogrammers
Expand All @@ -12,8 +12,8 @@ packages:
pkg-host:
url: github.com/toitlang/pkg-host
name: host
version: 1.10.0
hash: e1c11a0e0bf65fe810520e8d893e554a8fe33b78
version: 1.14.1
hash: da453fb59f7ef3d37f39e4b438495f7c16614733
toit-icons-pictogrammers:
url: github.com/toitware/toit-icons-pictogrammers
name: pictogrammers_icons
Expand Down
2 changes: 1 addition & 1 deletion tests/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ environment:
dependencies:
host:
url: github.com/toitlang/pkg-host
version: ^1.10.0
version: ^1.14.1
pictogrammers_icons:
url: github.com/toitware/toit-icons-pictogrammers
version: ^1.0.0
Expand Down
4 changes: 2 additions & 2 deletions tests/png-visualizer.toit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
import binary show BIG-ENDIAN byte-swap-32
import io show BIG-ENDIAN ByteOrder
import bitmap show *
import bytes show Buffer
import crypto.crc show *
Expand Down Expand Up @@ -402,7 +402,7 @@ SEVERAL-MAX-COLOR_ ::= 9

byte-swap_ ba/ByteArray -> ByteArray:
result := ba.copy
byte-swap-32 result
ByteOrder.swap-32 result
return result

class SwapRedAndBlack implements png.PaletteTransformer:
Expand Down

0 comments on commit 9fde39c

Please sign in to comment.