-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setFont via JS API #21
Comments
I only use C on Mongoose OS. I'm sorry to say, because the javascript
portion of this library was contributed, I do not use or maintain it
directly. I cannot answer questions on its functionality - please take a
look at the Mongoose OS gitter channel, perhaps you'll find the author or
an active userbase there.
…On Wed, Jun 2, 2021 at 6:16 PM amizer12 ***@***.***> wrote:
Hi,
Can you let me know how to properly send to the ffi function the font name
when using this library via JS API ?
When i simply use
ILI9341.setFont(&FreeMonoBold9pt7b);
It doesnt work and throws a parse error, when i try to pass it as string
or anything else it also fails.
Any pointers ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#21>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDRSPIEO3KSZEAUWF7V2HLTQZKONANCNFSM457B74MA>
.
--
Pim van Pelt ***@***.***>
PBVP1-RIPE - http://www.ipng.nl/
|
Thanks for your reply - i found the way to do it looking through some other issues in here - will post and update to README.md file to cover this as i`m sure a lot of people will have issues with it as well. |
@amizer12 see here for how to work with fonts from js - https://github.com/mongoose-os-apps/example-m5stack-js/blob/master/fs/init.js#L72 |
this uses a function in C - https://github.com/mongoose-os-apps/example-m5stack-js/blob/master/src/main.c#L26 i guess we could upstream it here for reuse |
yes, please! |
@rojer that was exactly what i |
Hi,
Can you let me know how to properly send to the ffi function the font name when using this library via JS API ?
When i simply use
ILI9341.setFont(&FreeMonoBold9pt7b);
It doesnt work and throws a parse error, when i try to pass it as string or anything else it also fails.
Any pointers ?
The text was updated successfully, but these errors were encountered: