Skip to content

JQuery won't work with Listen for Pin function #124

@leozhoushu

Description

@leozhoushu

Hi, I am using the involtListenForPin[0] to trigger action in app from device. I connected a sensor to Arduino Uno and it works fine. The problem is the other JQuery statement won't work, here's my code:

$(document).ready(function(){
 	$(".black").click(function(){
		$(".rec").animate({
        	top: "667px",
        	opacity: '0'}, "500");
    	$(".black").animate({opacity: '0'}, "50");
	});

 	involtListenForPin[0] = function(index, value){
 		if (value >100 ) {
 			$(".rec").animate({
        		top: "339px",
         		opacity: '1'}, "500");
     		$(".black").animate({opacity: '0.5'}, "50");
     	}};

});

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions