Meadow.Project.Samples icon indicating copy to clipboard operation
Meadow.Project.Samples copied to clipboard

[MeadowMenu] Hackster project tutorial out-of-date

Open patridge opened this issue 2 years ago • 2 comments

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.

  • 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 avatar Apr 16 '22 03:04 patridge