[MeadowMenu] Hackster project tutorial out-of-date
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.)
- Repo link at the bottom Code section is a 404.
- Current 404: https://github.com/WildernessLabs/Meadow.Project.Samples/tree/main/source/Hackster/MeadowMenu
- New URL (capitalize
Source): https://github.com/WildernessLabs/Meadow.Project.Samples/tree/main/Source/Hackster/MeadowMenu
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.
-
SpiClockConfigurationnow takes a unit-based value forspeed(instead ofspeedKHz). -
Device.CreateSpiBusparameters need updating to new "Controller Input/Output Peripheral Input/Output" API, replacing any MOSI/MISO with COPI/CIPO. -
GraphicsLibraryneeds to update toMicroGraphics. -
[Unrelated] Code formatting on Step 5 doesn't have C# syntax highlighting (possibly using the wrong language).

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.
Looks like the Obstacle Radar project also still uses the old GraphicsLibrary class.