ScrapExplorer - MF-DRV.ino

Home / systems / arduino / MF-DRV Lines: 1 | Size: 870 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/* SPDX-License-Identifier: GPL-3.0 2 * MF-DRV 3 * Work in progress driver for the MF Sensor Series 4 * 5 * COPYRIGHT NOTICE 6 * Copyright (C) 2024-2025 0x4248 and contributors 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the license is not changed. 9 * 10 * This software is free and open source. Licensed under the GNU general 11 * public license version 3.0 as published by the Free Software Foundation. 12 */ 13 14#define D0_PIN 1 15#define A0_PIN 0 16 17int a0Value = 0; 18int d0Value = 0; 19 20void setup() 21{ 22 pinMode(D0_PIN, INPUT); 23 pinMode(A0_PIN, INPUT); 24 Serial.begin(9600); 25} 26 27void loop() 28{ 29 // Im still figuring out what each of the pins do. 30 a0Value = analogRead(A0_PIN); 31 d0Value = analogRead(D0_PIN); 32 Serial.print("A0: "); 33 Serial.print(a0Value); 34 Serial.print(" D0: "); 35 Serial.println(d0Value); 36 delay(100); 37}
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.