Skip to content
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

Using on Rpi pico #4

Open
kaankaval opened this issue Jan 24, 2022 · 7 comments
Open

Using on Rpi pico #4

kaankaval opened this issue Jan 24, 2022 · 7 comments

Comments

@kaankaval
Copy link

Can i use this library on pico? I'm trying change the values of the library variables like uart ports. Unfortunately i failed about custimize this lib.

@effevee
Copy link
Owner

effevee commented Jan 24, 2022

I didn't test this on the raspberry pi pico. It should be perfectly possible. Have you checked the pico micropython documentation ?

@kaankaval
Copy link
Author

No. I'll check it now.

@kaankaval
Copy link
Author

20220124_182651.jpg

On one hand trying to control manually. Btw your lib should work perfectly on theory. Would you try it on Pico?

@effevee
Copy link
Owner

effevee commented Jan 24, 2022

you should never use the lora module without antenna or you will damage it.

Please post your modified code you have so far. I will have a look at it if I have some time

@varna9000
Copy link

It's just the pins, which have to be defined in the UART instance (e.g. tx=4,rx=5) and lib works pretty well on Pico. I've got a weather station sending data every 10 min with your lib and a pico. I've also made modification so it works on regular python on RPI. I'm planning to tidy all up and send you a PR at some point.

@effevee
Copy link
Owner

effevee commented May 5, 2022

It's just the pins, which have to be defined in the UART instance (e.g. tx=4,rx=5) and lib works pretty well on Pico. I've got a weather station sending data every 10 min with your lib and a pico. I've also made modification so it works on regular python on RPI. I'm planning to tidy all up and send you a PR at some point.

Looking forward to your modifications :-)

@varna9000
Copy link

varna9000 commented Sep 25, 2022

It's been a while :) I've made a multi-python branch of the library, which supports also esp8266, Raspberry Pi Pico and Raspberry Pi. Few days ago, I've added partial support for e32-DTU (outside mounting variant of e32-868). DTU has physical switches for m0 and m1, so I had to ignore these in the code for DTU. Config and Version functions are unusable, unless you physically change the dip switch positions. However sending and receiving for DTU works with the current functions (which is enough for me).

Added two new parameters to the constructor: platform and DTU

I'm still cleaning some bugs, but it's usable with all mentioned platforms. I've added plenty of comments on my modifications in the code.

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

No branches or pull requests

3 participants