Professional Documents
Culture Documents
tarjeta=arduino('COM13','UNO');
disp('Conexión establecida ...');
x=zeros(1,10);
for k=1:10
x(k)=readVoltage(tarjeta,'A5');
pause(0.2);
end
x
***********************************************************
**********************CÓDIGO GUIDE**********************
set(handles.lecturaBoton,'Enable','Off');
set(handles.limpiaBoton,'Enable','Off');
handles.led1.BackgroundColor=[1,0,0];
handles.led2.Enable='Off';
% Update handles structure
guidata(hObject, handles);
% --- Outputs from this function are returned to the command line.
function varargout = VisorArduino_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)