Set a breakpoint in your code, for example at the 15, and from Visual Studio Code click the Debug icon on the Activity bar, ensure " Publish, Launch and Attach Debugger" is selected in the dropdown, and click the green run icon. Review this Visual Studio Debugger Guide if you've not used the debugger before. Static CpuTemperature temperature = new CpuTemperature() Ĭonsole.WriteLine($"The CPU temperature is ')/bin/linux-arm/publish/ Deploy and Debug your. This code will read the Raspberry Pi CPU Temperature and display it in the system console window. Replace the code in program.cs file with the following code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |