Skip to content

Specialized CPU values for each Raspberry Pi#314

Merged
cal-pratt merged 4 commits intomasterfrom
pi-sensors
Jun 7, 2017
Merged

Specialized CPU values for each Raspberry Pi#314
cal-pratt merged 4 commits intomasterfrom
pi-sensors

Conversation

@cal-pratt
Copy link
Copy Markdown
Contributor

@cal-pratt cal-pratt commented Jun 7, 2017

This has been on the issue list for a long time so I just went ahead and did it. Fixes #142

Each pi can now emit its own status information (cpu voltage and temperature).
To do this I changed CpuValue into an interface and create a specialized Value for each Pi PicameraACpuValue, PicameraBCpuValue, and RasprimeCpuValue. Instead of specializing a view/viewcontroller for each item, I moved the logic from CpuInformationViewController into SensorViewController. This made a lot more sense than creating extra 6 classes with very similar code.

image

Note: I do not have a rasprime in my home setup, but it should work!

@cal-pratt cal-pratt added this to the MATE 2017 milestone Jun 7, 2017
@cal-pratt cal-pratt self-assigned this Jun 7, 2017
@cal-pratt cal-pratt requested a review from ConnorWhalen June 7, 2017 02:34
@cal-pratt cal-pratt changed the title Pi sensors Specialized CPU values for each Raspberry Pi Jun 7, 2017
@cal-pratt cal-pratt merged commit 79ef12e into master Jun 7, 2017
@cal-pratt cal-pratt deleted the pi-sensors branch June 7, 2017 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant