mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 09:05:34 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			621 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			621 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
 | 
						|
 * Copyright (c) 2014 Intel Corporation.
 | 
						|
 *
 | 
						|
 * This program and the accompanying materials are made available under the
 | 
						|
 * terms of the The MIT License which is available at
 | 
						|
 * https://opensource.org/licenses/MIT.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: MIT
 | 
						|
 */
 | 
						|
 | 
						|
#include <iostream>
 | 
						|
 | 
						|
#include "max44000.hpp"
 | 
						|
 | 
						|
int
 | 
						|
main(int argc, char** argv)
 | 
						|
{
 | 
						|
    //! [Interesting]
 | 
						|
    upm::MAX44000 sensor(0, ADDR);
 | 
						|
    std::cout << "proximity value = " << sensor.getAmbient() << std::endl;
 | 
						|
    //! [Interesting]
 | 
						|
 | 
						|
    std::cout << "exiting application" << std::endl;
 | 
						|
 | 
						|
    return 0;
 | 
						|
}
 |