freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于51單片機(jī)的led立方體顯示器設(shè)計(參考版)

2025-01-21 14:45本頁面
  

【正文】 draw_positions_axis(axis,cubepos,0)。 } else { cubepos[i] = (7pos[i])。i64。 } if (done == 64) notdone = 0。 pos[i] 7) { pos[i] += 1。i++) { if (pos[i] 0 amp。 for (i=0。 sent++。 notdone2 = 0。 if (pos[i] == 0) { sent++。amp。 } while (notdone) { if (mode == 1) { notdone2 = 1。i64。 fill(0x00)。 int notdone2 = 1。 unsigned char pos[64]。 int done。 if (axis == AXIS_X) setvoxel(p,y,x)。 } if (axis == AXIS_Z) setvoxel(x,y,p)。 y++) { if (invert) { p = (7positions[(x*8)+y])。 x++) { for (y=0。 for (x=0。 } } void draw_positions_axis (char axis, unsigned char positions[64], int invert){ int x, y, p。 } } draw_positions_axis (axis, positions,invert)。 px++) { if (positions[px]destinations[px]) { positions[px]++。 i++) { for (px=0。 for (i=0。 i++) { destinations[i] = 7。 } for (i=0。 } } draw_positions_axis (axis, positions,invert)。 px++) { if (positions[px]destinations[px]) { positions[px]++。 i++) { for (px=0。 } for (i=0。 i++) { positions[i] = 0。 for (i=0。}void effect_axis_updown_randsuspend (char axis, int delay, int sleep, int invert){ int i,px。 } if (positions[px]destinations[px]) { positions[px]。 px64。 } }}void effect_z_updown_move (unsigned char positions[64], unsigned char destinations[64]){ int px。y10。 } delay_ms(delay*4)。move++) { effect_z_updown_move(positions, destinations)。 for (move=0。iiterations。 delay_ms(delay)。 i8。 destinations[i] = rand()%8。 i64。 fill(0x00)。 } }}void effect_z_updown (int iterations, int delay){ int i,y,move。 delay_ms(delay)。amp。amp。 z = rand()%8。 } while (loop511) { x = rand()%8。 if (state == 1) { fill(0x00)。 }}// Set or clear exactly 512 voxels in a random order.void effect_random_filler (int delay, int state){ int x,y,z。i++) { clrvoxel(snake[i][0],snake[i][1],snake[i][2])。 for (i=0。i++) { setvoxel(snake[i][0],snake[i][1],snake[i][2])。 for (i=0。 snake[0][1] = y。 snake[i][2] = snake[i1][2]。i) { snake[i][0] = snake[i1][0]。 } if (drawmode == 0x03) // draw a snake { for (i=7。 } else if (drawmode == 0x02) // flip the voxel in question { flpvoxel(x,y,z)。 delay_ms(delay)。 z = z + dz。 // Finally, move the voxel. x = x + dx。amp。 dy == 1) dy = 1。 if (y == 7 amp。amp。 dz == 1) dz = 1。 if (z == 0 amp。amp。 dx == 1) dx = 1。 } } // one last sanity check if (x == 0 amp。 if (lol == 1) dy = 0。t want that! // So we alter the trajectory a bit, // to avoid corner stickyness lol = rand()%3。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。amp。 if (axis == AXIS_X) clrvoxel(i,y,x)。 y++) { if (axis == AXIS_Z) clrvoxel(x,y,i)。 x++) { for (y = 0。 } for (x = 0。 } } } } if (direction == 1) { i = 7。 } if (axis == AXIS_X) { state = getvoxel(iii,y,x)。 } if (axis == AXIS_Y) { state = getvoxel(x,iii,y)。 } if (axis == AXIS_Z) { state = getvoxel(x,y,iii)。 y++) { if (direction == 1) { iii = ii+1。 x++) { for (y = 0。 } for (x = 0。 i++) { if (direction == 1) { ii = i。 for (i = 0。 int ii, iii。 } }void tmp2cube (void){ memcpy(cube, fb, 64)。 z = (xz*(xx1))+z1。 x=x2。 lastz = z1。 lastz = z2。 lasty = y1。 lasty = y2。 z1 = tmp。 tmp = z2。 y2 = y1。 x1 = tmp。 tmp = x2。 unsigned char lasty,lastz。 // how many voxels do we move on the y axis for each step on the x axis float xz。 setvoxel(ix,y2,z2)。 setvoxel(ix,y2,z1)。ix=x2。 setvoxel(x2,iy,z2)。 setvoxel(x1,iy,z2)。iy=y2。 cube[x2][y2] = byteline(z1,z2)。 cube[x1][y2] = byteline(z1,z2)。z2)。 argorder(z1, z2, amp。y1, amp。x2)。 argorder(x1, x2, amp。 } } }}// Draw a wireframe box. This only draws the corners and edges,// no walls.void box_wireframe(int x1, int y1, int z1, int x2, int y2, int z2){ int iy。iy++) { if (iy == y1 || iy == y2 || ix == x1 || ix == x2) { cube[ix][iy] = byteline(z1,z2)。ix++) { for (iy=y1。 for (ix=x1。z1, amp。y2)。 argorder(y1, y2, amp。x1, amp。 int ix。iy++) { cube[ix][iy] |= byteline(z1,z2)。ix++) { for (iy=y1。 for (ix=x1。z1, amp。y2)。 argorder(y1, y2, amp。x1, amp。 int ix。 ~(0xff(end+1)))。 } }}// Returns a byte with a row of 139。yCUBE_SIZE。xCUBE_SIZE。 int y。y++) { cube[x][y] = pattern。x++) { for (y=0。 for (x=0。 }}////////////////////////////////////////////////////// Fill a value into all 64 byts of the cube buffer// Mostly used for clearing. fill(0x00)// or setting all on. fill(0xff)void fill (unsigned char pattern){ int x。 case AXIS_Z: clrplane_z(i)。 case AXIS_Y: clrplane_y(i)。 }}void clrplane (char axis, unsigned char i){ switch (axis) { case AXIS_X: clrplane_x(i)。 case AXIS_Z: setplane_z(i)。 case AXIS_Y: setplane_y(i)。 }}void setplane (char axis, unsigned char i){ switch (axis) { case AXIS_X: setplane_x(i)。zCUBE_SIZE。amp。 } }///////////////////////////////////////////////////void clrplane_y (int y){ int z。zCUBE_SIZE。amp。
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1