Skip to content

Commit

Permalink
Merge pull request #58 from uma-shankar-TE/main
Browse files Browse the repository at this point in the history
Removed frame.display.clear() as per new firmware
  • Loading branch information
siliconwitch committed Jul 19, 2024
2 parents 791797a + 0b2d473 commit 5cc83f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions frame/building-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ Once you have AR Studio installed, you can try an example using the following st

```lua
function change_text()
frame.display.clear()
frame.display.text('Frame tapped!', 50, 100)
frame.display.show()
end

frame.imu.tap_callback(change_text)
frame.display.clear()
frame.display.text('Tap the side of Frame', 50, 100)
frame.display.show()
```
Expand Down Expand Up @@ -154,4 +152,4 @@ See also the [test directory](https://github.com/brilliantlabsAR/frame-codebase/

### Font & graphics generation tool

**Details coming soon**
**Details coming soon**
3 changes: 1 addition & 2 deletions frame/lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ The Frame display is capable of rendering up to 16 colors at one time. These col

```lua
-- Display 'Hello world' at x = 50 and y = 100
frame.display.clear()
frame.display.text('Hello world', 50, 100)
frame.display.show()
```
Expand Down Expand Up @@ -293,4 +292,4 @@ The system API provides miscellaneous functions such as `sleep` and `update`. It
|:---------|:------------|
| `frame.stay_awake(enable)` | Prevents Frame from going to sleep while it's docked onto the charging cradle. This can help during development where continious power is needed, however may degrade the display or cause burn-in if used for extended periods of time
| `frame.fpga_read(address, num_bytes)` | Reads a number of bytes from the FPGA at the given address
| `frame.fpga_write(address, data)` | Writes data to the FPGA at a given address. `data` can be a string containing any byte values
| `frame.fpga_write(address, data)` | Writes data to the FPGA at a given address. `data` can be a string containing any byte values

0 comments on commit 5cc83f4

Please sign in to comment.