Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Commits
716bb10f
Commit
716bb10f
authored
4 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
remove nonfunctional MAX44006 driver
parent
54878d54
No related branches found
Branches containing commit
Tags
2.26.1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/driver/max44006.h
+0
-21
0 additions, 21 deletions
include/driver/max44006.h
src/driver/Kconfig
+0
-4
0 additions, 4 deletions
src/driver/Kconfig
src/driver/max44006.cc
+0
-71
0 additions, 71 deletions
src/driver/max44006.cc
with
0 additions
and
96 deletions
include/driver/max44006.h
deleted
100644 → 0
+
0
−
21
View file @
54878d54
#ifndef LM75_H
#define LM75_H
class
LM75
{
private:
LM75
(
const
LM75
&
copy
);
unsigned
char
const
address
;
unsigned
char
txbuf
[
3
];
unsigned
char
rxbuf
[
2
];
public:
LM75
(
unsigned
char
const
addr
)
:
address
(
addr
)
{}
float
getTemp
();
void
setOS
(
unsigned
char
os
);
void
setHyst
(
unsigned
char
hyst
);
};
extern
LM75
lm75
;
#endif
This diff is collapsed.
Click to expand it.
src/driver/Kconfig
+
0
−
4
View file @
716bb10f
...
...
@@ -48,10 +48,6 @@ bool "LM75 Temperature Sensor"
depends on meta_driver_i2c
# depends on I2C
config driver_max44006
bool "MAX44006 RGB Sensor"
depends on meta_driver_i2c
config driver_max44009
bool "MAX44009 Ambient Light Sensor"
depends on meta_driver_i2c
...
...
This diff is collapsed.
Click to expand it.
src/driver/max44006.cc
deleted
100644 → 0
+
0
−
71
View file @
54878d54
#include
"driver/max44006.h"
#include
"arch.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(DRIVER_SOFTI2C)
#include
"driver/i2c.h"
#else
#include
"driver/soft_i2c.h"
#endif
signed
char
MAX44006
::
setup
()
{
txbuf
[
0
]
=
0
;
txbuf
[
1
]
=
0
;
i2c
.
xmit
(
2
,
txbuf
,
0
,
rxbuf
);
arch
.
delay_us
(
10
);
txbuf
[
0
]
=
0x01
;
txbuf
[
1
]
=
0x20
;
i2c
.
xmit
(
2
,
txbuf
,
0
,
rxbuf
);
arch
.
delay_us
(
10
);
txbuf
[
0
]
=
0x02
;
txbuf
[
1
]
=
0x02
;
i2c
.
xmit
(
2
,
txbuf
,
0
,
rxbuf
);
return
0
;
}
void
MAX44006
::
wakeup
()
{
txbuf
[
0
]
=
0
;
txbuf
[
1
]
=
0
;
i2c
.
xmit
(
2
,
txbuf
,
0
,
rxbuf
);
}
void
MAX44006
::
sleep
()
{
txbuf
[
0
]
=
0x00
;
txbuf
[
1
]
=
0x08
;
i2c
.
xmit
(
2
,
txbuf
,
0
,
rxbuf
);
}
float
LM75
::
getTemp
()
{
txbuf
[
0
]
=
0
;
rxbuf
[
0
]
=
0
;
rxbuf
[
1
]
=
0
;
i2c
.
xmit
(
address
,
1
,
txbuf
,
2
,
rxbuf
);
return
rxbuf
[
0
]
+
(
rxbuf
[
1
]
/
256.0
);
}
void
LM75
::
setOS
(
unsigned
char
os
)
{
txbuf
[
0
]
=
0x03
;
txbuf
[
1
]
=
os
;
txbuf
[
2
]
=
0
;
i2c
.
xmit
(
address
,
3
,
txbuf
,
0
,
rxbuf
);
}
void
LM75
::
setHyst
(
unsigned
char
hyst
)
{
txbuf
[
0
]
=
0x02
;
txbuf
[
1
]
=
hyst
;
txbuf
[
2
]
=
0
;
i2c
.
xmit
(
address
,
3
,
txbuf
,
0
,
rxbuf
);
}
MAX44006
max44006
(
0x45
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment