Dia antes primera install

This commit is contained in:
2025-12-08 15:20:28 -06:00
commit 1416478c9c
4130 changed files with 886376 additions and 0 deletions

16
node_modules/i2c-bus/example/i2c-list-busses.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
'use strict';
// Determine the bus numbers of the I2C busses available on the current
// machine and print those bus numbers to the screen.
const glob = require('glob');
const busNumbers = glob.sync('/dev/i2c-*').
filter(fileName => fileName.match(/\/i2c-\d+$/) !== null).
map(fileName => parseInt(fileName.match(/\d+$/)[0], 10));
console.log(busNumbers);
// Here glob is used synchronously but it can also be used asynchronously.
// busNumbers is an array of numbers.