Skip to content

Commit 25b6557

Browse files
authored
Add files via upload
1 parent 1b864a3 commit 25b6557

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

arduinocode.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#![allow(dead_code, mutable_transmutes, non_camel_case_types, non_snake_case,
2+
non_upper_case_globals, unused_assignments, unused_mut)]
3+
#![register_tool(c2rust)]
4+
#![feature(register_tool)]
5+
#[no_mangle]
6+
pub static mut motorDer: libc::c_int = 5 as libc::c_int;
7+
#[no_mangle]
8+
pub static mut motorIzq: libc::c_int = 6 as libc::c_int;
9+
#[no_mangle]
10+
pub static mut ldrDer: libc::c_int = 0;
11+
#[no_mangle]
12+
pub static mut ldrIzq: libc::c_int = 0;
13+
#[no_mangle]
14+
pub static mut ValLdrDer: libc::c_int = 0 as libc::c_int;
15+
#[no_mangle]
16+
pub static mut ValLdrIzq: libc::c_int = 0 as libc::c_int;
17+
#[no_mangle]
18+
pub static mut sensorpir: libc::c_int = 12 as libc::c_int;
19+
#[no_mangle]
20+
pub static mut ledVerde3: libc::c_int = 8 as libc::c_int;
21+
#[no_mangle]
22+
pub static mut ledVerde4: libc::c_int = 9 as libc::c_int;
23+
#[no_mangle]
24+
pub static mut ledRojo2: libc::c_int = 10 as libc::c_int;
25+
#[no_mangle]
26+
pub static mut ledRojo1: libc::c_int = 11 as libc::c_int;
27+
#[no_mangle]
28+
pub unsafe extern "C" fn setup() { }

0 commit comments

Comments
 (0)