mirror of
https://github.com/zyphlar/doorlock.git
synced 2024-04-03 21:36:03 +00:00
18 lines
221 B
JavaScript
18 lines
221 B
JavaScript
|
function LED() {
|
||
|
return {
|
||
|
off: jest.fn(),
|
||
|
on: jest.fn(),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const tessel = {
|
||
|
led: {
|
||
|
0: LED(), // red
|
||
|
1: LED(), // amber
|
||
|
2: LED(), // green
|
||
|
3: LED(), // blue
|
||
|
},
|
||
|
}
|
||
|
|
||
|
module.exports = tessel
|