2022-07-08 20:36:33 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022 Jimmy Ou <yanagiis@gmail.com>
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
chosen {
|
2022-09-26 18:35:05 +08:00
|
|
|
zephyr,display = &max7219_max7219_8x8;
|
2022-07-08 20:36:33 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&arduino_spi {
|
|
|
|
status = "okay";
|
|
|
|
|
2022-09-26 18:35:05 +08:00
|
|
|
max7219_max7219_8x8: max7219@0 {
|
2022-07-08 20:36:33 +08:00
|
|
|
compatible = "maxim,max7219";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <1000000>;
|
|
|
|
num-cascading = <1>;
|
|
|
|
intensity = <0>;
|
|
|
|
scan-limit = <7>;
|
|
|
|
};
|
|
|
|
};
|