Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
total_control_app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Drechsler
total_control_app
Commits
8baee562
Commit
8baee562
authored
Nov 20, 2018
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added propsbase file which was needed in windows
parent
cfd576ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
propsbase.py
props/propsbase.py
+29
-0
No files found.
props/propsbase.py
0 → 100644
View file @
8baee562
from
__future__
import
absolute_import
,
division
,
print_function
from
builtins
import
*
# @UnusedWildImport
from
mcculw
import
ul
class
Props
(
object
):
"""The base class for classes that provide hardware information for the
library examples. Subclasses of this class may change hardware values.
It is recommended that the values provided by these classes be
hard-coded in production code.
"""
def
__init__
(
self
,
params
):
pass
def
get_config_array
(
self
,
info_type
,
board_num
,
count_item
,
value_item
,
wrapper_type
=
None
):
result
=
[]
count
=
ul
.
get_config
(
info_type
,
board_num
,
0
,
count_item
)
for
item_num
in
range
(
count
):
config_value
=
ul
.
get_config
(
info_type
,
board_num
,
item_num
,
value_item
)
if
wrapper_type
==
None
:
result
.
append
(
config_value
)
else
:
result
.
append
(
wrapper_type
(
config_value
))
return
result
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment