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

EasyDIY OpenSource Ebike display compatibility #3

Open
dodox1 opened this issue Aug 4, 2022 · 4 comments
Open

EasyDIY OpenSource Ebike display compatibility #3

dodox1 opened this issue Aug 4, 2022 · 4 comments

Comments

@dodox1
Copy link

dodox1 commented Aug 4, 2022

Hello,
do You think it is complicated to modify Your SW102 code to OpenSource display (based on nordic nrf52 usb dongle)?

Thank's
dodo

@anszom
Copy link
Owner

anszom commented Aug 7, 2022

No, it should be quite simple. You would need to build for a different SOC (the DIY display uses nrf52840 instead of 51822), and adjust the pin numbers. Other than that I don't think there would be any major changes.

One thing to note is that the UI uses all four buttons (up/down/M/power), so you should build the 4-button version of the display.

@dodox1
Copy link
Author

dodox1 commented Aug 10, 2022

It seems to be necessary to update the SDK
"SDK v12.3.0 provides experimental support for the nRF52840 SoC"
*** Scope for the nRF52840 chip


The PCA10056 development board is supported but all examples and libraries
for the new chip should be treated as experimental.

The following SDK features are supported on the new nRF52840 chip:

  • Most BLE, hardware peripheral, and NFC examples (with some
    exceptions; see the available example projects for details)
  • Peripheral HAL and drivers (both for existing and new peripherals)
  • Library supporting CC310 CryptoCell
  • NFC Type 2 Tag and Type 4 Tag

The following SDK features are not supported on the new nRF52840 chip:

  • ANT
  • Secure DFU
  • Serialization
  • DTM
  • ESB and Gazell
  • RTX and FreeRTOS
  • Eddystone

@dodox1
Copy link
Author

dodox1 commented Aug 10, 2022

@dodox1
Copy link
Author

dodox1 commented Aug 22, 2022

Update.
It seems that nrf52840 is not a big problem to convert to the newer SDK (16). (Just a few modifications of some changed API calls)
For testing purposes, I did a nasty merge of your code with the "ev_display_bluetooth_ant" source.
However, what I found a bit tricky is to convert the display driver part of your code to the SPI ssd1306 display library, which is used in the ev_display 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

2 participants