SlideShare a Scribd company logo
the Prototyping in Interaction Design




    _
    _
+   interaction design   interaction design + prototype
+   interaction design   interaction design + prototype
VS   Model
prototyping
4.5.
4.5.
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
prototyping
int latchPin = 8;
int clockPin = 12;
int dataPin = 11;

void setup() {
  pinMode(latchPin, OUTPUT);
}

void loop() {
  for (int j = 0; j < 256; j++) {
    digitalWrite(latchPin, 0);
    shiftOut(dataPin, clockPin, j);
    digitalWrite(latchPin, 1);
    delay(1000);
  }
}

void shiftOut(int myDataPin, int
myClockPin, byte myDataOut) {
 int i=0;
 int pinState;
 pinMode(myClockPin, OUTPUT);
 pinMode(myDataPin, OUTPUT);
 digitalWrite(myDataPin, 0);
 digitalWrite(myClockPin, 0);

    for (i=7; i>=0; i--) {
      digitalWrite(myClockPin, 0);
      if ( myDataOut & (1<<i) ) {
        pinState= 1;
      }
      else {
        pinState= 0;
      }
      digitalWrite(myDataPin, pinState);
      digitalWrite(myClockPin, 1);
      digitalWrite(myDataPin, 0);
    }
    digitalWrite(myClockPin, 0);
}
int latchPin = 8;
int clockPin = 12;
int dataPin = 11;

void setup() {
  pinMode(latchPin, OUTPUT);
}

void loop() {
  for (int j = 0; j < 256; j++) {
    digitalWrite(latchPin, 0);
    shiftOut(dataPin, clockPin, j);
    digitalWrite(latchPin, 1);
    delay(1000);
  }
}

void shiftOut(int myDataPin, int
myClockPin, byte myDataOut) {
 int i=0;
 int pinState;
 pinMode(myClockPin, OUTPUT);
 pinMode(myDataPin, OUTPUT);
 digitalWrite(myDataPin, 0);
 digitalWrite(myClockPin, 0);

    for (i=7; i>=0; i--) {
      digitalWrite(myClockPin, 0);
      if ( myDataOut & (1<<i) ) {
        pinState= 1;
      }
      else {
        pinState= 0;
      }
      digitalWrite(myDataPin, pinState);
      digitalWrite(myClockPin, 1);
      digitalWrite(myDataPin, 0);
    }
    digitalWrite(myClockPin, 0);
}
void setup() {
  size(400, 400);
  background(255);
  frameRate(10);
  smooth();
}
void draw() {

    color c1 = color(random(255), random(255), random(255));
    stroke(c1);

    if((abs(pmouseY-mouseX) > 1.0) || (abs(mouseY-pmouseX) > 1.0)) {

    float speed= abs(pmouseY-mouseX)/40;
    strokeWeight(speed);
}


    line(200, 200, mouseX, mouseY);

}
6

More Related Content

Similar to 硕士答辩Keynote

Intoduction to dynamic memory allocation
Intoduction to dynamic memory allocationIntoduction to dynamic memory allocation
Intoduction to dynamic memory allocation
Utsav276
 
Moony li pacsec-1.8
Moony li pacsec-1.8Moony li pacsec-1.8
Moony li pacsec-1.8
PacSecJP
 
C programs
C programsC programs
C programs
Koshy Geoji
 
Effective C#
Effective C#Effective C#
Effective C#
lantoli
 
Cluj.py Meetup: Extending Python in C
Cluj.py Meetup: Extending Python in CCluj.py Meetup: Extending Python in C
Cluj.py Meetup: Extending Python in C
Steffen Wenz
 
Praktek ARDUINO
Praktek ARDUINOPraktek ARDUINO
Praktek ARDUINO
Dedi Supardi
 
7segment scetch
7segment scetch7segment scetch
7segment scetchBang Igo
 
C tech questions
C tech questionsC tech questions
C tech questions
vijay00791
 
Microsoft Word Hw#1
Microsoft Word   Hw#1Microsoft Word   Hw#1
Microsoft Word Hw#1
kkkseld
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
Saket Pathak
 
Program flowchart
Program flowchartProgram flowchart
Program flowchart
Sowri Rajan
 
coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino
Nanda Fauzi P
 
Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)
TechLeap
 
Mcs011 solved assignment by divya singh
Mcs011 solved assignment by divya singhMcs011 solved assignment by divya singh
Mcs011 solved assignment by divya singh
DIVYA SINGH
 
Tdm to vo ip 2
Tdm to vo ip 2Tdm to vo ip 2
Tdm to vo ip 2
Abhiroop Mn
 

Similar to 硕士答辩Keynote (20)

Intoduction to dynamic memory allocation
Intoduction to dynamic memory allocationIntoduction to dynamic memory allocation
Intoduction to dynamic memory allocation
 
Moony li pacsec-1.8
Moony li pacsec-1.8Moony li pacsec-1.8
Moony li pacsec-1.8
 
C programs
C programsC programs
C programs
 
Effective C#
Effective C#Effective C#
Effective C#
 
Vcs5
Vcs5Vcs5
Vcs5
 
Cluj.py Meetup: Extending Python in C
Cluj.py Meetup: Extending Python in CCluj.py Meetup: Extending Python in C
Cluj.py Meetup: Extending Python in C
 
Praktek ARDUINO
Praktek ARDUINOPraktek ARDUINO
Praktek ARDUINO
 
Clean code
Clean codeClean code
Clean code
 
7segment scetch
7segment scetch7segment scetch
7segment scetch
 
C tech questions
C tech questionsC tech questions
C tech questions
 
Microsoft Word Hw#1
Microsoft Word   Hw#1Microsoft Word   Hw#1
Microsoft Word Hw#1
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
 
Vcs16
Vcs16Vcs16
Vcs16
 
Marat-Slides
Marat-SlidesMarat-Slides
Marat-Slides
 
3
33
3
 
Program flowchart
Program flowchartProgram flowchart
Program flowchart
 
coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino coding and wiring dht11 and ultrasonic hcsr04 arduino
coding and wiring dht11 and ultrasonic hcsr04 arduino
 
Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)Temperature sensor with a led matrix display (arduino controlled)
Temperature sensor with a led matrix display (arduino controlled)
 
Mcs011 solved assignment by divya singh
Mcs011 solved assignment by divya singhMcs011 solved assignment by divya singh
Mcs011 solved assignment by divya singh
 
Tdm to vo ip 2
Tdm to vo ip 2Tdm to vo ip 2
Tdm to vo ip 2
 

More from pemi hua

陈炜柏_变色龙拆卸报告.pptx
陈炜柏_变色龙拆卸报告.pptx陈炜柏_变色龙拆卸报告.pptx
陈炜柏_变色龙拆卸报告.pptx
pemi hua
 
低碳与设计视野下的低碳设计
低碳与设计视野下的低碳设计 低碳与设计视野下的低碳设计
低碳与设计视野下的低碳设计 pemi hua
 
Rettig.Interaction Design History.V1.5
Rettig.Interaction Design History.V1.5Rettig.Interaction Design History.V1.5
Rettig.Interaction Design History.V1.5
pemi hua
 
应急避难所设计前期研究
应急避难所设计前期研究应急避难所设计前期研究
应急避难所设计前期研究
pemi hua
 
避难所设计调研
避难所设计调研避难所设计调研
避难所设计调研
pemi hua
 
汶川地震紧急避难所研究报告
汶川地震紧急避难所研究报告汶川地震紧急避难所研究报告
汶川地震紧急避难所研究报告
pemi hua
 
应急避难所设计前期研究B
应急避难所设计前期研究B应急避难所设计前期研究B
应急避难所设计前期研究B
pemi hua
 
2009 10 18 Tfsz应急避难所设计前期研究
2009 10 18 Tfsz应急避难所设计前期研究2009 10 18 Tfsz应急避难所设计前期研究
2009 10 18 Tfsz应急避难所设计前期研究
pemi hua
 
应急避难所设计前期研究Q
应急避难所设计前期研究Q应急避难所设计前期研究Q
应急避难所设计前期研究Q
pemi hua
 
汶川应急避难所前期设计研究报告
汶川应急避难所前期设计研究报告汶川应急避难所前期设计研究报告
汶川应急避难所前期设计研究报告
pemi hua
 
应急避难所设计研究
应急避难所设计研究应急避难所设计研究
应急避难所设计研究
pemi hua
 
避难所设计前期研究报告
避难所设计前期研究报告避难所设计前期研究报告
避难所设计前期研究报告
pemi hua
 
工业设计方法 09
工业设计方法 09工业设计方法 09
工业设计方法 09
pemi hua
 
Intel 智睿商务终端设计说明
Intel 智睿商务终端设计说明Intel 智睿商务终端设计说明
Intel 智睿商务终端设计说明
pemi hua
 
Mobiledesk Demo001
Mobiledesk Demo001Mobiledesk Demo001
Mobiledesk Demo001
pemi hua
 
[本科]交互设计专题
[本科]交互设计专题[本科]交互设计专题
[本科]交互设计专题pemi hua
 

More from pemi hua (16)

陈炜柏_变色龙拆卸报告.pptx
陈炜柏_变色龙拆卸报告.pptx陈炜柏_变色龙拆卸报告.pptx
陈炜柏_变色龙拆卸报告.pptx
 
低碳与设计视野下的低碳设计
低碳与设计视野下的低碳设计 低碳与设计视野下的低碳设计
低碳与设计视野下的低碳设计
 
Rettig.Interaction Design History.V1.5
Rettig.Interaction Design History.V1.5Rettig.Interaction Design History.V1.5
Rettig.Interaction Design History.V1.5
 
应急避难所设计前期研究
应急避难所设计前期研究应急避难所设计前期研究
应急避难所设计前期研究
 
避难所设计调研
避难所设计调研避难所设计调研
避难所设计调研
 
汶川地震紧急避难所研究报告
汶川地震紧急避难所研究报告汶川地震紧急避难所研究报告
汶川地震紧急避难所研究报告
 
应急避难所设计前期研究B
应急避难所设计前期研究B应急避难所设计前期研究B
应急避难所设计前期研究B
 
2009 10 18 Tfsz应急避难所设计前期研究
2009 10 18 Tfsz应急避难所设计前期研究2009 10 18 Tfsz应急避难所设计前期研究
2009 10 18 Tfsz应急避难所设计前期研究
 
应急避难所设计前期研究Q
应急避难所设计前期研究Q应急避难所设计前期研究Q
应急避难所设计前期研究Q
 
汶川应急避难所前期设计研究报告
汶川应急避难所前期设计研究报告汶川应急避难所前期设计研究报告
汶川应急避难所前期设计研究报告
 
应急避难所设计研究
应急避难所设计研究应急避难所设计研究
应急避难所设计研究
 
避难所设计前期研究报告
避难所设计前期研究报告避难所设计前期研究报告
避难所设计前期研究报告
 
工业设计方法 09
工业设计方法 09工业设计方法 09
工业设计方法 09
 
Intel 智睿商务终端设计说明
Intel 智睿商务终端设计说明Intel 智睿商务终端设计说明
Intel 智睿商务终端设计说明
 
Mobiledesk Demo001
Mobiledesk Demo001Mobiledesk Demo001
Mobiledesk Demo001
 
[本科]交互设计专题
[本科]交互设计专题[本科]交互设计专题
[本科]交互设计专题
 

Recently uploaded

Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
ViralQR
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 

Recently uploaded (20)

Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.Welocme to ViralQR, your best QR code generator.
Welocme to ViralQR, your best QR code generator.
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 

硕士答辩Keynote

  • 1.
  • 2. the Prototyping in Interaction Design _ _
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. + interaction design interaction design + prototype
  • 20. + interaction design interaction design + prototype
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. VS Model
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 76. 4.5.
  • 77. 4.5.
  • 78.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.
  • 114.
  • 115.
  • 116.
  • 117. int latchPin = 8; int clockPin = 12; int dataPin = 11; void setup() { pinMode(latchPin, OUTPUT); } void loop() { for (int j = 0; j < 256; j++) { digitalWrite(latchPin, 0); shiftOut(dataPin, clockPin, j); digitalWrite(latchPin, 1); delay(1000); } } void shiftOut(int myDataPin, int myClockPin, byte myDataOut) { int i=0; int pinState; pinMode(myClockPin, OUTPUT); pinMode(myDataPin, OUTPUT); digitalWrite(myDataPin, 0); digitalWrite(myClockPin, 0); for (i=7; i>=0; i--) { digitalWrite(myClockPin, 0); if ( myDataOut & (1<<i) ) { pinState= 1; } else { pinState= 0; } digitalWrite(myDataPin, pinState); digitalWrite(myClockPin, 1); digitalWrite(myDataPin, 0); } digitalWrite(myClockPin, 0); }
  • 118. int latchPin = 8; int clockPin = 12; int dataPin = 11; void setup() { pinMode(latchPin, OUTPUT); } void loop() { for (int j = 0; j < 256; j++) { digitalWrite(latchPin, 0); shiftOut(dataPin, clockPin, j); digitalWrite(latchPin, 1); delay(1000); } } void shiftOut(int myDataPin, int myClockPin, byte myDataOut) { int i=0; int pinState; pinMode(myClockPin, OUTPUT); pinMode(myDataPin, OUTPUT); digitalWrite(myDataPin, 0); digitalWrite(myClockPin, 0); for (i=7; i>=0; i--) { digitalWrite(myClockPin, 0); if ( myDataOut & (1<<i) ) { pinState= 1; } else { pinState= 0; } digitalWrite(myDataPin, pinState); digitalWrite(myClockPin, 1); digitalWrite(myDataPin, 0); } digitalWrite(myClockPin, 0); }
  • 119.
  • 120.
  • 121.
  • 122. void setup() { size(400, 400); background(255); frameRate(10); smooth(); } void draw() { color c1 = color(random(255), random(255), random(255)); stroke(c1); if((abs(pmouseY-mouseX) > 1.0) || (abs(mouseY-pmouseX) > 1.0)) { float speed= abs(pmouseY-mouseX)/40; strokeWeight(speed); } line(200, 200, mouseX, mouseY); }
  • 123.
  • 124.
  • 125.
  • 126. 6