Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

[MeadowMenu] Hackster project tutorial out-of-date #5

Open
patridge opened this issue Apr 16, 2022 · 2 comments
Open

[MeadowMenu] Hackster project tutorial out-of-date #5

patridge opened this issue Apr 16, 2022 · 2 comments
Assignees

Comments

@patridge
Copy link
Contributor

This is a bug for the Build an Interactive Menu with TextDisplayMenu Using Meadow (MeadowMenu) Hackster project, not for the actual sample project in this repo.

It looks like the API changed a bit for creating the display and graphics objects. (This might affect other Hackster articles.)

It looks like the sample project has been updated, but the Step 5 - Write the code for MeadowMenu section has several updates needed, both in the main code block and also in explanation text.

  • SpiClockConfiguration now takes a unit-based value for speed (instead of speedKHz).

  • Device.CreateSpiBus parameters need updating to new "Controller Input/Output Peripheral Input/Output" API, replacing any MOSI/MISO with COPI/CIPO.

  • GraphicsLibrary needs to update to MicroGraphics.

  • [Unrelated] Code formatting on Step 5 doesn't have C# syntax highlighting (possibly using the wrong language).

    Screenshot of Hackster article showing C# code syntax highlighting mismatch with all the code either white or red text.

@patridge
Copy link
Contributor Author

Not sure if it was a fix or typo, but the SpiClockConfiguration changed from 12,000 KHz (speedKHz: 12000) to 48,000 KHz (speed: new Frequency(48000, Frequency.UnitType.Kilohertz)) in the update. I hope to test both some time this weekend, but wanted to make sure that was intentional.

@patridge
Copy link
Contributor Author

Looks like the Obstacle Radar project also still uses the old GraphicsLibrary class.

@jorgedevs jorgedevs self-assigned this May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants