Skip to content

Replacing pins.createBuffer() with control.createBuffer(), for RPi has not#1

Open
AqeeAqee wants to merge 1 commit into
riknoll:masterfrom
AqeeAqee:master
Open

Replacing pins.createBuffer() with control.createBuffer(), for RPi has not#1
AqeeAqee wants to merge 1 commit into
riknoll:masterfrom
AqeeAqee:master

Conversation

@AqeeAqee
Copy link
Copy Markdown

@AqeeAqee AqeeAqee commented Mar 8, 2022

Phenomenon:
When using this ext on hardware target RPi, would get following error
image

Cause:
RPi target has no createBuffer() in pins namespace.

Solution:
Relace it with control.createBuffer(). Functionality of both are the same, they all result in mkbuffer()

@AqeeAqee
Copy link
Copy Markdown
Author

AqeeAqee commented Mar 8, 2022

Target Version changed automatically in my commit, it's that OK? Or shall I re-submit a new one without pxt.json changed?

[pxt.json] "targetVersions": { ("target": "1.2.10",) "target": "1.8.22", "targetId": "arcade" },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant