namespace
literals
Contents
- Reference
Functions
-
const pros::
Serial pros:: literals:: operator""_ser(const unsigned long long int m) - Constructs a Serial device from a litteral ending in _ser.
-
const pros::
Vision pros:: literals:: operator""_vis(const unsigned long long int m) - Constructs a Vision sensor from a litteral ending in _vis.
Function documentation
const pros:: Serial pros:: literals:: operator""_ser(const unsigned long long int m)
#include <pros/serial.hpp>
Constructs a Serial device from a litteral ending in _ser.
Returns | a pros:: |
---|
Example
using namespace pros::literals; void opcontrol() { pros::Serial serial = 2_ser; //Makes an Serial device object on port 2 }
const pros:: Vision pros:: literals:: operator""_vis(const unsigned long long int m)
#include <pros/vision.hpp>
Constructs a Vision sensor from a litteral ending in _vis.
Returns | a pros:: |
---|
Example
using namespace pros::literals; void opcontrol() { pros::Vision vision = 2_vis; //Makes an Vision sensor object on port 2 }