This is the latest working repository used in our demo video for the Maxim to display temperature readings on Bluetooth
hspguisourcev301/HspGuiSourceV301/HSPGui/Program.cs@5:bc128a16232f, 2021-05-02 (annotated)
- Committer:
- darienf
- Date:
- Sun May 02 23:09:04 2021 +0000
- Revision:
- 5:bc128a16232f
- Parent:
- 3:36de8b9e4b1a
This is the program that was last used, that has the working temperature and some comments
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
darienf | 3:36de8b9e4b1a | 1 | using System; |
darienf | 3:36de8b9e4b1a | 2 | using System.Collections.Generic; |
darienf | 3:36de8b9e4b1a | 3 | using System.Linq; |
darienf | 3:36de8b9e4b1a | 4 | using System.Windows.Forms; |
darienf | 3:36de8b9e4b1a | 5 | |
darienf | 3:36de8b9e4b1a | 6 | namespace HealthSensorPlatform |
darienf | 3:36de8b9e4b1a | 7 | { |
darienf | 3:36de8b9e4b1a | 8 | static class Program |
darienf | 3:36de8b9e4b1a | 9 | { |
darienf | 3:36de8b9e4b1a | 10 | /// <summary> |
darienf | 3:36de8b9e4b1a | 11 | /// The main entry point for the application. |
darienf | 3:36de8b9e4b1a | 12 | /// </summary> |
darienf | 3:36de8b9e4b1a | 13 | [STAThread] |
darienf | 3:36de8b9e4b1a | 14 | static void Main() |
darienf | 3:36de8b9e4b1a | 15 | { |
darienf | 3:36de8b9e4b1a | 16 | if (Environment.OSVersion.Version.Major >= 6) |
darienf | 3:36de8b9e4b1a | 17 | SetProcessDPIAware(); |
darienf | 3:36de8b9e4b1a | 18 | |
darienf | 3:36de8b9e4b1a | 19 | Application.EnableVisualStyles(); |
darienf | 3:36de8b9e4b1a | 20 | Application.SetCompatibleTextRenderingDefault(false); |
darienf | 3:36de8b9e4b1a | 21 | Application.Run(new HspForm()); |
darienf | 3:36de8b9e4b1a | 22 | } |
darienf | 3:36de8b9e4b1a | 23 | |
darienf | 3:36de8b9e4b1a | 24 | [System.Runtime.InteropServices.DllImport("user32.dll")] |
darienf | 3:36de8b9e4b1a | 25 | private static extern bool SetProcessDPIAware(); |
darienf | 3:36de8b9e4b1a | 26 | } |
darienf | 3:36de8b9e4b1a | 27 | } |